Non-MFC files and "stdafx.h"

Hello,

I have an MFC app in which almost every class is derived from an MFC class, except for a few. In other words, I have a few classes which I've written for general C++ projects, and which are included in several different projects other than this one. MFC wants me to include "stdafx.h" in each implementation file when using precompiled headers, which I have been doing thus far. But if I do that for these particular classes, other non-MFC projects would also have that #include "stdafx.h" line.

Is it possible to get around this without having separate MFC versions of these other classes? I'm VERY new to using precompiled headers and I still don't exactly understand how they work, so you'll have to excuse a bit of ignorance on my part.

Thanks!
Turn of pre-compiled headers for the files that don't need it.
Topic archived. No new replies allowed.