FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour using CALLDLL
Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
using CALLDLL
Posted: Wed Sep 14, 2016 12:30 PM

how may using function DanezGUS form GUS.dll

      nip:-"5230000001"
       text= DanezGUS(nip)

function DanezGus is in GUS.dll
and has one parameter nip and return string

best regards

kajot
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: using CALLDLL
Posted: Wed Sep 14, 2016 01:19 PM
kajot wrote:how may using function DanezGUS form GUS.dll

nip:-"5230000001"
text= DanezGUS(nip)

function DanezGus is in GUS.dll
and has one parameter nip and return string


A DLL function can't return a string. Please check the DLL docs. It should have the returned string as a parameter passed by reference.

EMG
Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
Re: using CALLDLL
Posted: Thu Sep 15, 2016 09:23 AM

Thanks, any samples

best regards

kajot
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: using CALLDLL
Posted: Thu Sep 15, 2016 09:39 AM
This is a sample for REGQUERYVALUE:

Code (fw): Select all Collapse
DLL32 FUNCTION REGQUERYVALUE( hKey AS LONG, cValueName AS LPSTR, nReserved AS LONG, @nType AS PTR, @cData AS LPSTR, @nSize AS PTR ) AS LONG;
      PASCAL FROM "RegQueryValueExA" LIB "advapi32.dll"


Please note

Code (fw): Select all Collapse
@cData AS LPSTR


EMG

Continue the discussion