Try adding
#include <windows.h>
before the
windef.h
header. But unless you need to interact with code using
BOOL
you should probably use the C++
bool
type:
#include <iostream>
#include <iomanip> //for std::boolaplha
int main()
{
bool test = true;
std::cout << "test = " << test << '\n'; std::cout << std::boolalpha;
std::cout << "test = " << test << '\n'; }