
Launching and Monitoring a 16-bit Windows app from VB5 application running on Windows NT 4.0
Here's a 16-bit Windows solution - I don't know if it works in NT, but
it might point you in the right direction. The 32-bit solution is
completely different.
In declarations section:
Declare Function GetModuleUsage% Lib "Kernel" (ByVal hModule%)
Dim x%
x = Shell("NOTEPAD.EXE")
While GetModuleUsage(x) > 0
DoEvents
Wend
Tom.
Quote:
>I have a VB5 application that needs to launch a 16-bit Windows application
>and then wait for it to close.
>Has anyone ever done this before? Let me know if you have any ideas. I
>will update this if I get anywhere.