title: How to invoke function of .cpp with button click event inside .h file?
body: <p>In my project there is one .cpp file which include main() function and one more function which I want to call from Form1.h on button click event.</p>
  
  <p><strong>My code:</strong></p>
  
  <p>My someting.cpp</p>
  
  <pre><code>main()
  {
  
  Application::Run(gcnew Form1());
  return 0;
  }
  
  my_function()
  {
   /code
  }
  </code></pre>
  
  <p>My Form1.h</p>
  
  <pre><code>namespace somthing {
      //auto generated code
  
     private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e)
     {  
         my_function();   
     }
  }
  </code></pre>