2

Which MIDL data type is equal to the VB6's Boolean type?

ezpresso
  • 7,896
  • 13
  • 62
  • 94

2 Answers2

3

According to MSDN Boolean is available in MIDL.

Fenton
  • 241,084
  • 71
  • 387
  • 401
0

Finally I tried Boolean (as @Sohnee suggested), VARIANT_BOOL (thanks to @Alex K.) and BOOL.

The Boolean type was not recognized by VB6's Object Browser. The VARIANT_BOOL is the exact equivalent to a VB6's Boolean data type. The BOOL was recognizes as Long data type in VB6.

ezpresso
  • 7,896
  • 13
  • 62
  • 94