title: import DLL with extern "C++"
body: <p>When I write DLLs I usually use code like that</p>
  
  <pre><code>extern "C"
  {
  //some declarations
  }
  </code></pre>
  
  <p>but how exactly can I dynamically load a function from DLL which has been written this way</p>
  
  <pre><code>extern "C++"
  {
      __declspec(dllexport) int Foo(int x)
      {
          return 42;
      }
  }
  </code></pre>
  
  <p>?</p>
  
  <p>Of course I can manually decorate name by writing code like that</p>
  
  <pre><code>int (*Foo)(int);
  Foo = (int(*)(int)) GetProcAddress(hModule, "?Foo@@YAHH@Z");
  </code></pre>
  
  <p>and it will work, but it should be some normal way to do it.</p>