title: Export a class in dll without the function decoration
body: <p>I would like to know how to get rid of the decorations around a function of a class that I need to export in a dll. For example, when you have something like this :</p>
  
  <pre><code>extern "C"
  {
      __declspec(dllexport) int __cdecl getWhatever();
  }
  </code></pre>
  
  <p>And that you verify with dependencyWalker, the function's name that is exported, you will have exactly the same function Name.</p>
  
  <p>But if you do something similar with a class, there will be a bunch of character decorating the function like this:</p>
  
  <pre><code>extern "C"
  {
  
    class __declspec(dllexport) Toto
    {
      __cdecl Toto(){}
      __cdecl  ~Toto(){}
  
      int __cdecl getBlob(float y){return (int)y;}
     };
  
  } 
  </code></pre>
  
  <p>In dependencyWalker you will see this :</p>
  
  <p>??0Toto@@AAE@XZ</p>
  
  <p>??1Toto@@AAE@XZ</p>
  
  <p>??4Toto@@QAEAAV0@ABV0@@Z</p>
  
  <p>?getBlob@Toto@@AAAHM@Z</p>
  
  <p>So how to make it clean like with a procedural function?</p>
  
  <p>Thanks,</p>