note: i haven't touched c++ for years.
An app that can only have a single instance at any one time is called a singleton.
C++ singleton example: [
^]
Another example: [
^]
note: you might wat to review the discussion here about C++ singleton: [
^]