MFC在添加gsoap生成的源文件到工程项目中,出现bug: MFC apps must not #include

问题:MFC在添加gsoap生成的源文件到工程项目中,出现bug: MFC apps must not #include <windows.h>

解决方案:经研究是因为在stdsoap2.cpp和XXXProxy.cpp文件中引入stdafx.h时没把#include "stdafx.h"放在第一行,所以解决方案就是应该首先包含头文件#include "stdafx.h",重新编译一切OK了!!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章