FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Correcta forma de llamar a DLL externa?
Posts: 883
Joined: Tue Oct 11, 2005 11:57 AM
Correcta forma de llamar a DLL externa?
Posted: Tue Aug 26, 2014 10:17 PM
Segun manual es:

VARIANT_BOOL Conectar( [in] BSTR IPAdd, [in] long Portl)

Deberia hacerlo asi ?

DLL FUNCTION Conectar( IPAdd AS LPSTR, Portl AS LONG ) AS BOOL PASCAL LIB "xxxxxx.dll"

Mi codigo es este...

PUBLIC hDLL := LoadLibrary("xxxxxx.dll")
lReturn:=Conectar("192.168.1.1",9999)

MsgInfo( lReturn )

FreeLibrary( hDLL )

Pero siempre obtengo NIL, no .T. o .F. como espero

Cualquier ayuda sera bienvenida.

Desde Chile
Adolfo
;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
Posts: 883
Joined: Tue Oct 11, 2005 11:57 AM
Re: Correcta forma de llamar a DLL externa?
Posted: Wed Aug 27, 2014 06:29 PM

UP...
Alguna Idea..

;-) Ji,ji,ji... buena la cosa... "all you need is code"

http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Correcta forma de llamar a DLL externa?
Posted: Wed Aug 27, 2014 11:46 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion