Archived

This topic is now archived and is closed to further replies.

MFC and DirectX Compile Error

This topic is 5537 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to write a tool for my game using MFC and DirectX. I have a graphics library that I''m using and it works fine in Non-MFC applications. But when I try to compile it with my MFC app, it gives the following compile error... c:\development\core\core_graphics.cpp(2864) : fatal error C1010: unexpected end of file while looking for precompiled header directive Is there a setting in the project that I might be missing? Thanks! k9

Share this post


Link to post
Share on other sites
Yes. Either include stdafx.h in core_graphics.cpp or right click on it in the project workspace and choose ''Settings'' then go to the C++ tab, choose "Precompiled Headers" from the drop down, and click the "Not using precompiled headers" radio button.

Share this post


Link to post
Share on other sites