Cannot convert parameter from ‘const char[20]’ to ‘LPCWSTR’

By default UNICODE is defined in Visual Studio 2010. Either call MessageBoxA instead of using the MessageBox define or pass a wide string literal (L“First Win32 Program” and L“Window Title”) or, if you really care about being able to build without UNICODE defined, use the _T macro around your string literals: _T(“First Win32 Program”) (this … Read more