Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

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 3270


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