Update: I can reproduce the issue independently of my application by downloading this zipped project referenced by this potentially relevant article... which builds fine... but the moment I try to specify the extra include folder and include serverapplication.h, these errors occur. There is no mention of any dependencies on the Poco ServerApplication class documentation page.推荐答案要将POCO的ServerApplication.h头文件包含在MFC项目中,请在#include "ServerApplication.h"之前尝试#include <winsvc.h>.请注意,您不得在MFC项目中包含Windows.h,而该项目通常会包含winsvc.h.To include POCO's ServerApplication.h header file in an MFC project, try #include <winsvc.h> prior to #include "ServerApplication.h". Note that you must not include Windows.h in an MFC project, which would normally include winsvc.h. 这篇关于无法编译"hello world".带有Poco的Web服务器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-13 12:14