开发者

Strange build errors in MFC application

开发者 https://www.devze.com 2023-02-02 03:33 出处:网络
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.

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


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++.

0

精彩评论

暂无评论...
验证码 换一张
取 消