- Code: Select all
fatal error C1189: #error: WINDOWS.H already included. MFC apps must not #include <windows.h>
And another tip: if your application uses Unicode, remember that POCO uses UTF-8 encoding (unless specifically disabled when building POCO) for filenames and other strings obtained from or passed to the OS. To convert such an UTF-8 encoded std::string into a UTF-16 encoded std::wstring, which can then be used in GUI code, use Poco::UnicodeConverter.