Jump to content
  • Advertisement
Sign in to follow this  
pixienick

C files in MFC not happening?

This topic is 4946 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

Hello there i have this problem that when i try to add a pair of .h and .c files to my MFC app i get this error "C1010 unexpected end of file while looking for precompiled header directive". These files work in a console app. This has happened with a different pair of files also. There does not seem anything particularly different about the code in these files and just changing the extension makes no diff. Is there a way of making C files work in an MFC app? Any help would be much appreciated cheers

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Ok, MFC often use precompiled headers which means that stdafx.h should be included first in any cpp/c file you have. If you don't want to use precompiled headers you can disable them in project settings.

Lizard

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!