>>>>I found a neat Third Party EXE that I want to call from my application. Is RUN /N Program.exe the best way? Also, is there a Win32API function that I can call to see if program.exe is already running and switch to it if it is?
>>>>
>>>>Thanks!
>>
>>I believe there is an article in this months VFUG newsletter that covers that.
>
>I read the article, and it was useful. I came up with some code that works which I have included below. I have one question. When I remove the WAIT command, the application flashes on the screen for a second and then vanishes. Why is this? Am I missing some thing? It seems like the READ EVENTS is the culprit. This code works fine (with the WAIT) if I run it outside my application, that is as an PRG instead of EXE.
To tell you the truth I have not used his code yet so I don't know. Hopefully one of the people who have used his code will see this message.
Tom