An interesting question, asked days ago in one of our C++ forums, was the following:
A possible approach, based in mutex (mutual exclusion) objects, was posted a few hours later. In the proposed schema you declare a mutex object inside the MFC application class (i.e. the class header):
When you define the MFC application ...