Wizard finished itself
-
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 " -
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 "Why are you doing it like this ? Why do you need to open the shell ? Christian Graus - Microsoft MVP - C++
-
Why are you doing it like this ? Why do you need to open the shell ? Christian Graus - Microsoft MVP - C++
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]".
-
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]".
*grin* Fair enough. I just thought you may be doing stuff that could be done in code. :-O Christian Graus - Microsoft MVP - C++