title: Calling main method from other project's main method in c++
body: <p>I want to call <code>main</code> method inside project <code>A</code> from <code>main</code> method inside project <code>B</code>. When I write in <code>B</code>'s <code>main.cpp</code> </p>
  
  <pre><code>    #include "pathToProjectA/main.cpp"
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>    error C2084: function 'int main(int,char *[])' already has a body
  </code></pre>
  
  <p>Is it possible to make such call? </p>