If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
I somewhat doubt you can use wx functions like this from "main" without wxWidgets being initialized first... not sure it's linked with your issue though
"Keyboard not detected. Press F1 to continue"
-- Windows
#include <wx/string.h>
#include <wx/utils.h>
#include <windows.h>
int _tmain()
{
//Store the old console format in 'oldcp'
UINT oldcp = GetConsoleOutputCP();
SetConsoleOutputCP(CP_UTF8);
wchar_t s[] = L"aΣb";
int bufferSize = WideCharToMultiByte(CP_UTF8, 0, s, -1, NULL, 0, NULL, NULL);
char* m = new char[bufferSize];
WideCharToMultiByte(CP_UTF8, 0, s, -1, m, bufferSize, NULL, NULL);
wxPrintf("%S", m);
delete[] m;
//Restore the console format
SetConsoleOutputCP(oldcp);
}
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
VS Community 2019
msys2-mingw13.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2.4 Unicode Mono Static gcc static build