Original Post
How's possible to have this : mHwnd = CreateWindow("Windowclass", "Good", mstyle, mXpos, mYpos, mWidth, mHeight, NULL, NULL, mHinstance, NULL); which is perfectly legal , as the example about CreateWindow() in MSDN says : hwnd = CreateWindow("MainWClass", "Sample", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, (HWND) NULL, (HMENU) NULL, hinstance, (LPVOID) NULL); and then to have an error like this? error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [12]' to 'LPCWSTR' I have also this : MessageBox(NULL, "Could not create window", "Error", MB_OK); and then this error : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [24]' to 'LPCWSTR' I can’t even unregister my window class like this: UnregisterClass("Windowclass", mHinstance); Because I get the error : error C2664: 'UnregisterClassW' : cannot convert parameter 1 from 'const char [12]' to 'LPCWSTR' No need to mention that when I setup my window class and write this: mWcex.lpszClassName = "Windowclass"; I get an error again: error C2440: '=' : cannot convert from 'const char [12]' to 'LPCWSTR' I can't figure out what's wrong. Please if anyone has any idea.... Thanks in advance