
Has Anyone tackled the Shell and Wait Function?
-snip-
Quote:
>The september 1995 issue of Visual Bascic Programmers Journal covers exactly what you want
>on page 111, it's "An enhanced ShellAndWait function wich uses the WinExec API to start an
>application but expands on Shell's usefulness by supporting als possible ShowWindow
>styles.
>ShellAndWaite also waits until the spawned application terminates before retrurning
>control to your program"
>Hope this information helps (You could consider a subscription on VBPJ.....)
>Gerrit.
Thank you very much for that refrence to VBPJ, I seemed to have missed
that article when I read that issue. There is also a very good
article on how to do this is the FAQ as well. It includes changing
the icon form the standard DOS icon to something else. I put it into
one of my programs and it is working great (the same procedure was on
the DevNet CD).
The one problem I have with shell Apps is that I am very concerned
about people deleting my PIF file. Is there a way under Win3.1 or WFW
to create a PIF through code?? I see that it can be done under Win95,
but I did not see a 16bit method.
Chris Thorson