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. Wizard finished itself

Wizard finished itself

Scheduled Pinned Locked Moved C / C++ / MFC
4 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.
  • U Offline
    U Offline
    User 1426359
    wrote on last edited by
    #1

    I have made a wizard and on the last page I call: ShellExecute(NULL,"open","cmd",NULL,NULL, SW_SHOWNORMAL ); ................ SendInput(....); When that is done in the page I should receive some informations. Everything works fine when I use the wizard for the first time, but if I try to use it again without restarting the application when the cmd window closes so does the wizard. The comands sent to the cmd are: "xcopy ..... exit\n "

    C 1 Reply Last reply
    0
    • U User 1426359

      I have made a wizard and on the last page I call: ShellExecute(NULL,"open","cmd",NULL,NULL, SW_SHOWNORMAL ); ................ SendInput(....); When that is done in the page I should receive some informations. Everything works fine when I use the wizard for the first time, but if I try to use it again without restarting the application when the cmd window closes so does the wizard. The comands sent to the cmd are: "xcopy ..... exit\n "

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Why are you doing it like this ? Why do you need to open the shell ? Christian Graus - Microsoft MVP - C++

      U 1 Reply Last reply
      0
      • C Christian Graus

        Why are you doing it like this ? Why do you need to open the shell ? Christian Graus - Microsoft MVP - C++

        U Offline
        U Offline
        User 1426359
        wrote on last edited by
        #3

        I guess you are asking that because of the "xcopy". Well that is only the first command and exit is the last one. I'm using gcc under cygwin so I must login before I can execute something like "gcc [param]".

        C 1 Reply Last reply
        0
        • U User 1426359

          I guess you are asking that because of the "xcopy". Well that is only the first command and exit is the last one. I'm using gcc under cygwin so I must login before I can execute something like "gcc [param]".

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          *grin* Fair enough. I just thought you may be doing stuff that could be done in code. :-O Christian Graus - Microsoft MVP - C++

          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