Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to get HWND of ShellExecute launched app
Message
From
07/01/2003 12:40:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00738764
Message ID:
00738908
Views:
21
David,
Unfortunately same side effect. Say user wanted to launch winword 2 times (main.app dispatches requests to another exe). Second call to word doesn't wait.
PS: Shell* call CreateProcess and they use WaitForSingleObject which is defeated by apps. making DDE brodcast.
Cetin


>Cetin,
>
>>Unfortunately not David. They might be any app. user defined (DOS or Win).
>
>If all you really need to do is let the launched app finish before the VFP code continues you can use the Shell.Run() instead of ShellExecute()
>
>oShell = createobject("WScript.Shell")
>oShell.Run("notepad.exe",SW_SHOW_NORMAL,.T.)
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform