I'm not sure what the compiler is complaining about?
I'm getting a "error C2143: syntax error : missing ';' before '<<'" on the Cout line below:
but if I change that line to:
Then it compiles fine.
I have UNICODE defined, so what's different about the 2nd example vs. letting the preprocessor change Cout to wcout?
I'm getting a "error C2143: syntax error : missing ';' before '<<'" on the Cout line below:
Code:
#ifdef UNICODE
# define Cout wcout;
#else
# define Cout cout;
#endif // UNICODE
...
Cout << "Blah blah blah." << endl; // error C2143 here
Code:
wcout << "Blah blah blah." << endl;
I have UNICODE defined, so what's different about the 2nd example vs. letting the preprocessor change Cout to wcout?