LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a DLL with the appbuilder that returns a bool

Hi,
 
i need to create a dll with the appbuilder that returns bool. but i can only set the returnvalue to nummeric or string..
 
the prototype should look like this
 
BOOL MyFunction(UCHAR ucANTChannel, UCHAR ucResponseMsgID);
 
**original callback function: typedef BOOL (*RESPONSE_FUNC)(UCHAR ucANTChannel, UCHAR ucResponseMsgID);
 
is this possible?
 
thank you
martin
0 Kudos
Message 1 of 2
(2,422 Views)

Hello Martin,

BOOL is not an C or C++ data type. The type BOOL is somewhere defined either with an macro like

#define BOOL unsigned int

or a typedef

typedef BOOL unsigned int;

You have to find out with the programmer which data type it is. I would expect that it is a int or unsigned int which is on the Windows I32 or U32.

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 2
(2,415 Views)