'I am getting this error message - a value of type "const char *" cannot be assigned to an entity of type"LPCWSTR"

These are the lines of code that are causing the error:

    WndClass.lpszClassName = "WinProg";

and

hWindow = CreateWindow("WinProg", "Window", WS_OVERLAPPEDWINDOW, 0, 0, 400, 400, NULL, NULL, hInstance, NULL);

I don't know how to "fix" this error.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source