title: Unmangling C++ DLL Function Names
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1467144/how-do-i-stop-name-mangling-of-my-dlls-exported-function">How do I stop name-mangling of my DLL&#39;s exported function?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a DLL that is written in C++.  The exported function names need to be unmangled.  For example, <code>int MyFunc( int Param1, int Param2 );</code> needs to appear to an outside application trying to call the library function simply as <code>MyFunc</code>.  However, when I look at it using Dependency Walker, it looks like <code>_MyFunc@8</code>.  This is how I have it declared in C++:</p>
  
  <pre><code>extern "C" __declspec(dllexport) int WINAPI MyFunc( int Param1, int Param2 );
  </code></pre>
  
  <p>I thought the <code>extern "C"</code> would do the trick.  How do I get rid of the mangling?  Thanks.</p>