Visibility of MFC Classes
-
If I specify a class member in one of my header files that uses a class I have defined, I must either use a forward declaration or include that class's header file. However, I can use all of the MFC classes in any header file without a forward declaration or including the class's header file. What VS Project options allow this to be the case?
The difficult we do right away... ...the impossible takes slightly longer.
-
If I specify a class member in one of my header files that uses a class I have defined, I must either use a forward declaration or include that class's header file. However, I can use all of the MFC classes in any header file without a forward declaration or including the class's header file. What VS Project options allow this to be the case?
The difficult we do right away... ...the impossible takes slightly longer.
-
If I specify a class member in one of my header files that uses a class I have defined, I must either use a forward declaration or include that class's header file. However, I can use all of the MFC classes in any header file without a forward declaration or including the class's header file. What VS Project options allow this to be the case?
The difficult we do right away... ...the impossible takes slightly longer.
It's pretty much what Richard said... try to use an MFC class in a C/C++ file that's configured as "not using a precompiled header" and you'll have the same requirement of including/forward declaring.