• Advertisement
Sign in to follow this  

Visual C .NET PCH on some files, not on others

This topic is 4888 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 mix an MFC app that uses PCH, ya know stdafx.h, with my code that was straight up, no pre-compiled headers hear. So i add them to my project and it gives me the error c1010, well i add stdafx.h to the source of all files, and compile it, and it kinda works, but i dont want to do that. I want to leave the original source unchanged. Then i read you can set the /Yu option per cpp file in your project. I cant find anywhere in my .net ide to do this. Its really pissing me off, i dont need precompiled headers for the engine part of my code, but mfc needs it for the buttons i guess. please help me solve me problem.

Share this post


Link to post
Share on other sites
Advertisement
Right-clicking on the file itself and choosing Properties will let you change individual file settings in the IDE.

Share this post


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

  • Advertisement