I'm looking for some C++ code or direction in writing some to close an app if it detects another instance running.
Our little update utility writes a log file, which I'm thinking of using as the clue. I was thinking that before the second instance attempts to write to the .log file, if the MyApp.log is opened, I could just skip out.
How can I get that done with C++? I'm not a C++ guys, as you may have gathered from other posts, so if there is anything special I have to do to close an app (something needed other than a Me.Close type statement), please let me know.
Any help GREATLY appreciated!!