Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't pass parameter and call function in the DLL
Message
De
03/02/1999 08:08:51
 
 
À
01/02/1999 23:46:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00182255
Message ID:
00183345
Vues:
24
Paul,

>>If you download my Pointers class from the Files section, you'll find a >>NumberConversion class in the Pointers.vcx library. Use the conversion >>methods to translate your numeric values to char strings, concatenate them >>and pass the resulting string by reference to the dll function:

>>DECLARE G_openChannel IN v10032.dll STRING @cChannel

>>SET CLASSLIB TO Pointers ADDITIVE
>>oConv = CreateObject("NumberConversion")
>>lcChannel = oConv.NumberToInteger1String(0) + ;
>>oConv.NumberToInteger1String(0) + ;
>>oConv.NumberToInteger2String(1) + ;
>>oConv.NumberToInteger4String(5)
>>= G_openChannel(@lcChannel)

Yes i had downloaded the pointer.ocx file. Is it i need to add the pointer.ocx file to my form(if i use a form) and add the class inside the pointer.ocx?
After that use the declare statement and create object statement you gave to procedd the DLL ? If not tell me how,thanks.

regard,
chang
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform