Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't pass parameter and call function in the DLL
Message
From
03/02/1999 08:08:51
 
 
To
01/02/1999 23:46:10
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00182255
Message ID:
00183345
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform