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. Yet another dll question

Yet another dll question

Scheduled Pinned Locked Moved C / C++ / MFC
questionworkspace
1 Posts 1 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.
  • V Offline
    V Offline
    VanHlebar
    wrote on last edited by
    #1

    I have a dll that contains a number of resources for dialog boxes. Since I am working on the PPC and it does not support wizards, I am trying to make my dialog boxes act like a wizard. I can get the first dialog box to open correctly and all is fine. When the user clicks "Next"(defined as IDOK), the systems calls the proper class to setup the next dialog, but it displays the first Dialog box. I have setup AfxMessageBox() at various points in the application to tell what is getting called and it does call the proper class. I have a single function exported from the dll that the main application calls to start the "wizard" Inside this function I have declared two objects, one for my first dialog box and one for my second dialog box. void DLLEXPORT StartWizard() { CDialogOne dlg1; CDialogTwo dlg2; int nResult; nResult = dlg1.DoModal(); if(nResult == IDOK) { nResult == dlg2.DoModal(); } } Each time this is run, I get the first dialog box displayed twice. Any ideas? Thanks, -Eric

    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