0_0_39087269_13356.cpp: In function 'int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)':
0_0_39087269_13356.cpp:12:25: error: cannot convert 'const wchar_t*' to 'LPCTSTR' {aka 'const char*'} in initialization
12 | LPCTSTR szAppName = L"OFWIN";
| ^~~~~~~~
| |
| const wchar_t*
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/windows.h:72,
from 0_0_39087269_13356.cpp:1:
0_0_39087269_13356.cpp:33:9: error: cannot convert 'const wchar_t*' to 'LPCSTR' {aka 'const char*'}
33 | L"A standard WinMain Frame",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const wchar_t*
gcc-13.1.0/x86_64-w64-mingw32/include/winuser.h:2203:84: note: initializing argument 3 of 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'
2203 | WINUSERAPI HWND WINAPI CreateWindowExA(DWORD dwExStyle,LPCSTR lpClassName,LPCSTR lpWindowName,DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HINSTANCE hInstance,LPVOID lpParam);
| ~~~~~~~^~~~~~~~~~~~
|