Wiki

Options

Case Status
Log In

Wiki

Options

 
Whole Tomato Software - Home
  • RSS Feed

Class members of type bool are not recognised

In rare cases class members of type bool will not be recognized as members, they won't be colored as variables, and they won't be suggested in listboxes.  This can be caused by using a C library that defines its own bool type—with compilers that don't already support this type. If this happens, the solution is to add the line:

#define bool bool

to a va_stdafx.h file, which is used to help the parser in Visual Assist understand complex code. The definition tells Visual Assist to use the default bool type, and not the library definition.

If the definition does not resolve your problem, try the following definition:

#define bool BOOL