Page 1 of 1

Correcta forma de llamar a DLL externa?

Posted: Tue Aug 26, 2014 10:17 pm
by Adolfo
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

Re: Correcta forma de llamar a DLL externa?

Posted: Wed Aug 27, 2014 6:29 pm
by Adolfo
UP...
Alguna Idea..

Re: Correcta forma de llamar a DLL externa?

Posted: Wed Aug 27, 2014 11:46 pm
by Antonio Linares