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. MDI help

MDI help

Scheduled Pinned Locked Moved C / C++ / MFC
hardwarehelp
2 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    ScotDolan
    wrote on last edited by
    #1

    In a MDI application that will have several Forms/Dialogs. Where is the best place to initialize my main class that will act as my main loop / finite state for the whole application. There are 4 dialog / forms that used to controls and change setting within object within the main loop class / finite state machine.

    Scott Dolan Jernie Corporation Engineering & Manufacturing Software, Hardware, & Enclosures

    M 1 Reply Last reply
    0
    • S ScotDolan

      In a MDI application that will have several Forms/Dialogs. Where is the best place to initialize my main class that will act as my main loop / finite state for the whole application. There are 4 dialog / forms that used to controls and change setting within object within the main loop class / finite state machine.

      Scott Dolan Jernie Corporation Engineering & Manufacturing Software, Hardware, & Enclosures

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      You could do it the MFC way and have a single application class instance. Initialization is in the constructor, before WinMain is called. Additional calls on the object could be made in WinMain. Mark

      "Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")

      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