Poco C++ libraries and Win32 GUI integration

末鹿安然 提交于 2019-12-11 03:46:58

问题


Has anyone ever used Poco C++ libraries in a Win32 GUI application? In the PocoFoundation library, many #undef inside the UnWindows.h header file, inhibit the use of important APIs ( as CreateWindows(), LoadLibrary(), and so on). All right, I can define the POCO_NO_UNWINDOWS flag, but other problems arise. Any suggestion is welcome. Sergio


回答1:


Poco, as a portable library, is based on UTF-8 strings. Windows Unicode is UTF-16. For clarity purposes, it is recommended that all Windows API calls that take strings be called directly (i.e. A or W version), with appropriate string encoding and the conversion thereof, if necessary.

EDIT: Poco Foundation library can be compiled with POCO_NO_UNWINDOWS.



来源:https://stackoverflow.com/questions/27816386/poco-c-libraries-and-win32-gui-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!