MFC 应用程序中的奇怪构建错误

发布于 2024-10-09 21:20:54 字数 220 浏览 0 评论 0原文

我正在使用 Visual Studio 2010 在 MFC C++ 中编写端口扫描应用程序。当我尝试编译时,出现超过 100 个错误,所有错误均与文件 atlcore.hafxcomctl32.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

与往事干杯 2024-10-16 21:20:54

好吧,我想通了!它没有编译并抛出所有这些错误的原因是因为我在 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++.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文