ccubed
August 14th, 2008, 10:54 PM
So now i'm screwing with SetConsoleTitle and I keep getting conversion errors.
string title = "Testing Console Functions";
SetConsoleTitle(title.c_str());
I keep getting this error whether I make it LPCSTR, LPCWSTR, Const Char, Char or String. So what am I doing wrong?
1>c:\users\cooper\documents\visual studio 2008\projects\forgotten_truths2\forgotten_truths2\main.cpp(41) : error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR'
string title = "Testing Console Functions";
SetConsoleTitle(title.c_str());
I keep getting this error whether I make it LPCSTR, LPCWSTR, Const Char, Char or String. So what am I doing wrong?
1>c:\users\cooper\documents\visual studio 2008\projects\forgotten_truths2\forgotten_truths2\main.cpp(41) : error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'const char *' to 'LPCWSTR'