Sergio
Sergio

Reputation: 941

Poco C++ libraries and Win32 GUI integration

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

Upvotes: 2

Views: 1719

Answers (1)

Alex
Alex

Reputation: 5330

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.

Upvotes: 2

Related Questions