Archived

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

knine

MFC and DirectX Compile Error

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