General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only