title: How to call from C# simple function in C++ DLL
body: <p>i have a simple function in c++ (not a method of a class)</p>
  
  <pre><code>__declspec(dllexport) extern "C" void __stdcall TestFunc();  
  </code></pre>
  
  <p>i try to call it from c#:  </p>
  
  <pre><code>[DllImport("ImportTest.dll")]  
  public static extern void TestFunc();  
  
  ...  
  
  TestFunc();
  </code></pre>
  
  <p>It throws an "entry point could't be found" exception.  </p>
  
  <p>Whats wrong?  </p>
  
  <p>Thank you for helping me :)</p>