title: Calling a function from a header in Visual C++ 2010
body: <p>I'm programming in Visual C++ 2010. I've got a example.h example.cpp and Form1.h.
  Basically, I've pasted bits of code. I'm not able to include Form1.h in the example.h file, not sure why. But The main question is how do I call Test (which is in form1.h) from example.cpp? What would be the syntax? Is it possible to do this?</p>
  
  <p>My Form1.h </p>
  
  <pre><code>#include "example.h" 
  public ref class Form1 : public System::Windows::Forms::Form
  {
      public: void Test(void)
      {
                // Does something
      }
  }
  </code></pre>
  
  <p>My example.cpp</p>
  
  <pre><code>#include "example.h"
  #include "Form1.h"
  
  Test();    // would like to call Test from here. 
  </code></pre>