using CALLDLL

using CALLDLL

Postby kajot » 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
User avatar
kajot
 
Posts: 339
Joined: Thu Nov 02, 2006 6:53 pm
Location: Poland

Re: using CALLDLL

Postby Enrico Maria Giordano » Wed Sep 14, 2016 1: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
User avatar
Enrico Maria Giordano
 
Posts: 8524
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: using CALLDLL

Postby kajot » Thu Sep 15, 2016 9:23 am

Thanks, any samples
best regards
kajot
User avatar
kajot
 
Posts: 339
Joined: Thu Nov 02, 2006 6:53 pm
Location: Poland

Re: using CALLDLL

Postby Enrico Maria Giordano » Thu Sep 15, 2016 9:39 am

This is a sample for REGQUERYVALUE:

Code: Select all  Expand view
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: Select all  Expand view
@cData AS LPSTR


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8524
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 31 guests