Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare DLL; exception error
Message
From
29/08/2000 15:33:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Declare DLL; exception error
Miscellaneous
Thread ID:
00410448
Message ID:
00410448
Views:
41
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
tcpHandle = 0
? bConnect("127.0.0.1",8227,@tcpHandle,0)
I have also tried 'dClient.dll', 'dClient' variations in the DECLARE statement (putting the DLL name inside quote marks).

I'm getting the message: "Declare DLL call caused an exception." Does anyone see the error of my ways?

Thanks,
Steve Gibson
Next
Reply
Map
View

Click here to load this message in the networking platform