January 16, 2009

Quick Fix Collection

Problem: VC code to mingw (codeblocks/DevCpp)

Error:
C:\...\ |54|error: cannot convert `const wchar_t[12]' to `const CHAR*' in assignment|

On line:
wc.lpszClassName = L"WindowClass";

Fix it with:
wc.lpszClassName = TEXT("WindowClass");

No comments: