ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How insert a Bool type parameter in a dll call node?

Dear all,

 

I have a function of a .dll of this type:

 

function(int return, int par1, bool par2)

 

When I look for a fitting description in the Parameter configuration menu I do not find the corresponding description for the bool variable.

 

Someone of you can give me a hand?

 

thanks

 

 

0 Kudos
Message 1 of 2
(2,724 Views)

You need to know how "bool" is defined in the DLL source code. Typically this is an I32, but it could just as well be a U8. For example, the Windows API defines the BOOL datatype as an "int". But "BOOLEAN" is defined as an unsigned char. Note that "BOOL" and "bool" are not the same thing.

0 Kudos
Message 2 of 2
(2,720 Views)