Can anyone please give an example how to use the OnExited event in C++, see link form msdn which one I’m referring to. http://msdn.microsoft.com/en-us/library/system.diagnostics.process.onexited.aspx . I am really confused with this C++/CLI. I am trying to delete a file after the process exited. I got it working in C# but prefer C++ so it can be easier to be wrapped for JNI.
Share
I’m not really sure what you want, so here’s a literal translation of the code on the page you linked to from C# to C++/CLI: