Poco C++ 库和 Win32 GUI 集成 [英] Poco C++ libraries and Win32 GUI integration

查看:33
本文介绍了Poco C++ 库和 Win32 GUI 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人在 Win32 GUI 应用程序中使用过 Poco C++ 库?在 PocoFoundation 库中,UnWindows.h 头文件中的许多 #undef 禁止使用重要的 API(如 CreateWindows()、LoadLibrary() 等).好吧,我可以定义 POCO_NO_UNWINDOWS 标志,但会出现其他问题.欢迎任何建议.塞尔吉奥

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

推荐答案

Poco 作为一个可移植的库,基于 UTF-8 字符串.Windows Unicode 是 UTF-16.为清楚起见,建议直接调用所有采用字符串的 Windows API 调用(即 A 或 W 版本),并在必要时使用适当的字符串编码和转换.

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.

Poco Foundation 库可以用 POCO_NO_UNWINDOWS 编译.

Poco Foundation library can be compiled with POCO_NO_UNWINDOWS.

这篇关于Poco C++ 库和 Win32 GUI 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆