title: How to create a wrapper DLL/Type Library in VB6?
body: <p><a href="https://stackoverflow.com/questions/13917375/whats-is-the-vb6-equivalent-of-a-c-char-array#13917815">In my previous question</a>, I asked why I kept getting the error message <code>bad DLL calling convention</code> when trying to call functions from a DLL. The general consensus was that I needed to change the calling convention to <code>cdecl</code>. Makes sense.</p>
  
  <p>Unfortunately, I cannot place it right there on the function declaration importation. I had to either "create a wrapper DLL" or "create a type library for the DLL."</p>
  
  <p>I am very unfamiliar with VB as my main focus at work is C# and this is the first time working in the language for a very long time. I'm not sure exactly how to accomplish this task.</p>
  
  <p>I'm also confused as to how a wrapper DLL helps things. Supposedly I can't decorate a function import with <code>cdecl</code> in my code but if I move that exact function import to a new VB6 DLL and then reference that DLL it suddenly works?</p>