MFC 应用程序中的奇怪构建错误
我正在使用 Visual Studio 2010 在 MFC C++ 中编写端口扫描应用程序。当我尝试编译时,出现超过 100 个错误,所有错误均与文件 atlcore.h
和 afxcomctl32.h 相关
。
所有这些都是错误#C3861,“找不到标识符”。
我没有以任何方式编辑这些文件。有人知道为什么会这样做吗?
谢谢
I am writing a port scanning application in MFC C++ using Visual Studio 2010. When I try to compile, I get >100 errors, all connected with the files atlcore.h
and afxcomctl32.h
.
All of them are error #C3861, "Identifier Not Found."
I have not edited these files in any way. Anybody know why this would be doing that?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我想通了!它没有编译并抛出所有这些错误的原因是因为我在 Windows XP 上使用 VS 2010,并且 MFC 支持 Windows Vista 及更高版本的操作系统。我尝试在 Visual Studio 2008 中编译我的代码并且它有效,所以我想我只需要使用 VS 2008 for MFC C++。
OK I figured it out! the reason it was not compiling and throwing all those error is because I'm using VS 2010 on a Windows XP, and the MFC support is for OSs Windows Vista and up. I tried compiling my code in Visual Studio 2008 and it worked, so I guess I just will have to use VS 2008 for MFC C++.