Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Large Projects

Large Projects

Scheduled Pinned Locked Moved C / C++ / MFC
c++asp-netperformance
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kempus
    wrote on last edited by
    #1

    I am after info on the best way to structure a large MFC/C++ project, addressing the following points:

    • Fastest Compilation Speed
    • Minimal dependencies
    • Minimal knowledge required to add new classes, i.e. no need to remember all the include files involved

    The application consists of about 7 Dll's, each containing related functionality (windows, core, document, reporting) Most new development requires the use of the main Dll's.

    P 1 Reply Last reply
    0
    • K kempus

      I am after info on the best way to structure a large MFC/C++ project, addressing the following points:

      • Fastest Compilation Speed
      • Minimal dependencies
      • Minimal knowledge required to add new classes, i.e. no need to remember all the include files involved

      The application consists of about 7 Dll's, each containing related functionality (windows, core, document, reporting) Most new development requires the use of the main Dll's.

      P Offline
      P Offline
      Paul Wolfensberger
      wrote on last edited by
      #2

      The Holy Trinity of large projects!! Here is the best single suggestion I can make: Avoid including headers within headers....I made this mistake with my first large C++ project, and as time went on I realized that any change I made to a header (like adding a new method) had the potential to cause recompiles across the application. To support this, you'll need to replace the member variable object definitions within your classes with pointer or reference members.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups