Include all headers with VC++

This is a discussion on Include all headers with VC++ within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to include all headers in all .cpp files without creating an infinite recursion error with Visual ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    10

    Include all headers with VC++

    Is there a way to include all headers in all .cpp files without creating an infinite recursion error with Visual C++?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Why on Earth would you want to include all of them? The whole reason for seperating them is that you only add what you need.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    10
    >> Why on Earth would you want to include all of them? The whole reason for seperating them is that you only add what you need.

    It's a MFC app. I want to include all of them to access the classes of other dialogs. Example:

    CAnotherClass ac;
    ac.DoModal( );
    Last edited by Rodrigo; 07-03-2003 at 02:13 PM.

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Hmmm, maybe you mean "all the ones you are using", to include all the headers avaiable would be absolutely ridiculous!
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. precompiled header file
    By George2 in forum C++ Programming
    Replies: 20
    Last Post: 04-07-2008, 09:14 AM
  2. C++ code in 1999
    By chen1279 in forum C++ Programming
    Replies: 6
    Last Post: 10-04-2006, 11:02 AM
  3. Multiple include problem
    By VirtualAce in forum Game Programming
    Replies: 13
    Last Post: 02-04-2006, 06:09 PM
  4. MFC include BS
    By VirtualAce in forum Windows Programming
    Replies: 4
    Last Post: 10-31-2005, 12:44 PM
  5. Redefinition of classes (#include headers)
    By cjschw in forum C++ Programming
    Replies: 3
    Last Post: 09-04-2003, 10:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21