VARIANT_BOOL Conectar( [in] BSTR IPAdd, [in] long Portl)
Should I DO it like this ?
DLL FUNCTION Conectar( IPAdd AS LPSTR, Portl AS LONG ) AS BOOL PASCAL LIB "xxxxxx.dll"
Thisis my code...
PUBLIC hDLL := LoadLibrary("xxxxxx.dll")
lReturn:=Conectar("192.168.1.1",9999)
MsgInfo( lReturn )
FreeLibrary( hDLL )
But I get a nil value, instead of .T. or .F.
What am I doing wrong... any help will be appreciated
Thanks in advance.
From Chile
Adolfo
http://www.xdata.cl - Desarrollo Inteligente
----------
Asus TUF F15, 32GB Ram, 2 * 1 TB NVME M.2, GTX 1650