Article ID: 164150
Article Last Modified on 10/24/2003
If you include the header OAIDL.H, note that this header defines both bool and boolval. To avoid this warning and prevent possible compatibility problems with future versions of Visual C++, your code should use the boolval definition instead of the bool definition.
/* Compile options needed:none
*/
#include <windows.h>
#include <iostream>
void main(void){
bool x;
BOOL Y;
x=true;
Y=FALSE;
}
Or,
#include <windows.h>
#include <yvals.h>
void main(void){
bool x;
BOOL Y;
x=true;
Y=FALSE;
}
Additional query words: bool kbOLDocs kbCompiler kbVC420 kbVC500fix kbDSupport kbdss
Keywords: kbdocfix kbdocerr kbcode KB164150