Sign in to follow this  

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

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

This topic is 4812 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this