Difference between BOOL and BOOLEAN in VC++

A BOOLEAN is an 8-bit field that is set to 1 to indicate TRUE, or 0 to indicate FALSE.
This type is declared as follows:
typedef BYTE BOOLEAN, *PBOOLEAN;
A BOOL is a 32-bit field that is set to 1 to indicate TRUE, or 0 to indicate FALSE.
This type is declared as follows:
typedef int BOOL, *PBOOL, *LPBOOL;

In

Leave a Reply

Your email address will not be published. Required fields are marked *