Export (0) Print
Expand All

boolean

The boolean data type is a VT_BOOL parameter that takes on the value of VARIANT_TRUE (–1) or VARIANT_FALSE (0). The following table lists the difference between the programmatic representations of logical TRUE in C/C++ and the Automation type.

LanguageValueNumerical value
C/C++TRUE1
AutomationVARIANT_TRUE–1

 

Both types are nonzero and therefore not FALSE, but have different representations for TRUE.

 

 

Show:
© 2014 Microsoft