Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Detect when user closes an app

$
0
0

My program opens an application using the ShellExecute command, e.g.

irtn = ShellExecute (hwnd=null, lpOperation = 'open'C, lpFile = 'edit_this.txt', ...)

In my case, txt files are associated with the app TextPad, so this line causes the system to open TextPad with the file edit_this. This much works fine.

Then, my program should wait until the user closes TextPad to continue. How can my program determine when TextPad has been closed?


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>