Declare Function bConnect Lib "dClient.dll" (hostID$, portnum%, tcphandle&, maxtime&) As Long>I am able to access the DLL from VB using this declaration. I need to use the DLL from Fox. Here is what I am trying in VFP6 SP3:
>declare long bConnect in dClient string hostID, short portNum, long @tcpHandle, long maxTime
This makes no sense; why would you declare one of the arguments of type & as "long @" and the other "long"? The odds are that one of the two long declares is completely FUBAR, and either both should be declared LONG, or LONG @ (LONG is ByVal, LONG @ is ByRef)EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater
NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC
The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys