Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't pass parameter and call function in the DLL
Message
De
31/01/1999 11:56:03
 
 
À
31/01/1999 08:18:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00182255
Message ID:
00182277
Vues:
13
The DECLARE for this function will be:

DECLARE Get_OpenPort IN MyDll.dll STRING @Channel

The call:

Get_OpenPort(@Channel)

Channel will be a char string. As Ed already said, you have to give us the structure of the Channel_Param structure in order to know how this string must be built.

Vlad

>The function inside the DLL is :
>>> Get_OpenPort(Channel_Param *channel)
>in c to pass the parameters into 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.
>Anyone can help me ?
>thanks
>
>regard,
>chang
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform