Archived

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

nicho_tedja

how do i use precompiled header?

Recommended Posts

I''m using VS.NET. I read an MFC book, and it mentions the goodness of precompiled headers. And since AppWizard, do all the stuff, it becomes no worry for MFC. Since I''m an API guy, I want to do it by myself, make a blank project, create stdafx.h and stdafx.cpp, set the project options "Use Precompiled Headers" and set the following settings:
Create/Use Precompiled Header: Use Precompiled Header (/Yu)
Create/Use PCH Through File:   Stdafx.h
Precompiled Header File:       $(IntDir)/$(TargetName).pch
 
I compile it, errors! can someone help me out?
My compiler generates one error message: "does not compile."

Share this post


Link to post
Share on other sites