Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't Pass Parameters to The DLL
Message
De
31/01/1999 08:38:32
 
 
À
31/01/1999 08:20:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00179341
Message ID:
00182260
Vues:
21
>Ed Rauh,
>
>I have a DLL that's written in C language.
>The function inside the DLL is :
>>> Get_OpenPort(Channel_Param *channel)
>in C to pass the parameters and call function is :
>>> Channel_Param chan1 ;
>>> chan1.BaudRate=Baud9600 /*Baud9600 was define in .h file/
>>> chan1.Port=Com2 /*Com2 was define in .h file and included/
>>> Get_OpenPort(&chan1) /*call the function and pass parameters/
>
>I want to Use VFP to call the DLL and pass the parameters into function.
>I can register the DLL already by used Declare statement , but when i want to call the function and pass parameter i faced a problem.
>Do you know how to call and pass parameter in VFP? thanks

See the message I just responded to; without the C typedef, there's no way to know what the structure looks like, and without the constant declarations from the associated .H file, the values being passed are not known. You're probably better off using the MSComm control to handle the serial port (there are other third-party libraies to handle serial communications as well, that are known to support VFP, too.)
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
Répondre
Fil
Voir

Click here to load this message in the networking platform