title: Why VC++/MFC don't have main function?
body: <p>I start learning VC++/MFC. then I created a "HelloWord" program, 
  I got two <code>App.h/.cpp AppDlg.h/.cpp</code> basic files by created a basic <code>Dialog</code> project.</p>
  
  <p>The first problem: I can't find the program entry. there is no <code>main.cpp</code> in the project.</p>
  
  <p>Then I tried to find the relationship between <code>App</code> and <code>AppDlg</code>, met the second problem: base on the file name, looks like <code>AppDlg</code> should be a customized MFC <code>Dialog</code> component, and the <code>App</code> supposes to be the main event thread. But I got below in both <code>.cpp</code> files. it included each other. I thought <code>AppDlg</code> should be the part of <code>App</code>.</p>
  
  <pre><code>#include "App.h"
  #include "AppDlg.h"
  </code></pre>
  
  <p>these two problem makes me confused about the structure of the project.</p>
  
  <p>Why MFC code looks so different? For what purpose do like this?</p>