Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare DLL; exception error
Message
From
29/08/2000 16:13:28
 
 
To
29/08/2000 15:33:41
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00410448
Message ID:
00410474
Views:
16
>Hi all,
>
>I am trying to access a 3rd party DLL; here is the declaration for VB:
>
>
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform