Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DLL Function Parameter
Message
From
14/02/2003 20:16:17
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00753314
Message ID:
00753589
Views:
15
In typical MS fashion, BOOL was implemented as a 32 bit integer in C++ version 4.2, and as 1 byte in versions 5.0+.

Assuming you have one of the later version DLLs, try passing a 1 char string by reference and use the ASC() function to decode it.

>I am working on an application (VFP 7 or 8), where I am interfacing with a 32-bit DLL provided by a third party. I have been able to implement all but one of the functions contained within the DLL without a hitch. I am having a parameter type issue with the last function because one of the DLL function parameters is a Boolean value that is passed by reference. The first problem is that you cannot specify Boolean as a function return or function parameter type. Therefore, I have tried using both an Integer and Long data type for this parameter, and have tried many variations of the declaration and VFP wrapper method, but have still had no success. I am including all of the pertinent code snippets for the DLL function that I am trying to implement. I am hoping that someone can tell me what I am doing wrong or at least get me headed on the right track. Thanks in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform