Convert MainApp from an MFC application into a secondary dialog
<p>Hello fellow programmers, I come back to you to ask for a quick way to do something with MFC applications.</p>

<p>I have two MFC applications, and I want one to launch the other in a separate thread, so I can have both services running from executing a single <em>exe</em> file.</p>

<p>I'm actually new to MFC so I don't actually know what options I do have. Tried some dirty things but I keep getting duplicated resources problem, not to mention both apps start with <code>BOOL CMainApp::InitInstance()</code> and I'm guessing there is no way to have two initialization instances.</p>

<p>That being said, is there any quick way to rewrite one of the apps to become a secondary dialog without causing too much headache?</p>

<p>Thank you in advance, and excuse me if I'm asking something weird or easy.</p>