Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declare DLL; exception error
Message
De
29/08/2000 16:13:28
 
 
À
29/08/2000 15:33:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00410448
Message ID:
00410474
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform