title: C++ Form Build error
body: <p>Today we've been starting to use C++ and we've encountered a problem with creating our form.</p>
  
  <p>I've been looking at a video which contains a tutorial how to make a Form in C++.
  I'm used to use C# instead of C++, so I'm really a beginner of the beginning.
  I've set my SubSystem to Windows and my EntryPoint to main.</p>
  
  <p>I've used this code:</p>
  
  <pre><code> #include "MyForm.h"
  
  using namespace System;
  using namespace System::Windows::Forms;
  
  
  [STAThread]
  void main(array&lt;String^&gt;^ args) 
  {
  
      Application::EnableVisualStyles();
      Application::SetCompatibleTextRenderingDefault(false);
  
      Project1::MyForm form;
      Application::Run(%form);
  }
  </code></pre>
  
  <p>In the MyForm.cpp</p>
  
  <p>The errors:</p>
  
  <blockquote>
    <p>Error  5   error C2065: 'form' : undeclared identifier<br>
    Error   6   error C2065: 'form' : undeclared identifier<br>
    Error   3   error C2065: 'MyForm' : undeclared identifier<br>
    Error   4   error C2146: syntax error : missing ';' before identifier 'form'<br>
    Error   2   error C2653: 'Project1' : is not a class or namespace name<br>
    8   IntelliSense: expected a ';'<br>
    9   IntelliSense: identifier "form" is undefined<br>
    7   IntelliSense: name followed by '::' must be a class or namespace name<br>
    Warning 1   warning C4829: Possibly incorrect parameters to function main. Consider 'int main(Platform::Array^ argv)'<br></p>
  </blockquote>
  
  <p>I apologise for not posting an image due to my lack of reputation...</p>
  
  <p>I haven't configured anything further than this.
  Am I missing something?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Kind regards,</p>
  
  <p>Sjors</p>