Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Unicode wxWidgets in a Non-Unicode World

📅 2010-Jan-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

wxWidgets can be compiled to pure Unicode mode by setting wxUSE_UNICODE to 1 in the header file $(WX_WIDGETS_ROOT)\include\wx\msw\setup.h

But what if the rest of your code that interfaces with Unicode wxWidgets is still not Unicode, but uses char and STL std::string? The changes needed at the interface are:

If you are curious about this fishy Multi-Byte business, check out Windows: Multi-Byte.