I am trying to create a button but I always got an error
"cannot convert 'const wchar_t*' to 'LPCSTR {aka const char*}' for argument '2' to 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)'"
I tried:
HWND hwndButton = CreateWindow(
L"BUTTON",
L"OK",
WS_TABSTOP | WS_VISIBLE | BS_DEFPUSHBUTTON, // Styles
10,
10,
100,
100,
NULL,
NULL,
(HINSTANCE)GetWindowLongPtr(NULL, GWLP_HINSTANCE),
NULL);
Can someone help me to fix this???