title: Converting static link library to dynamic dll
body: <p>I have .lib file with its header (.h) file. This file have a few functions that need to be used in C# application.</p>
  <p>After googling I found that I need to create a dynamic DLL from this static library and call this dynamic DLL from C# code using interop.</p>
  <ol>
  <li><p>I have created a win32 project and selected type DLL.</p>
  </li>
  <li><p>Included header file and added .lib to additional dependencies.</p>
  <p>I am able to see the functions defined in the static library (when I press ctrl + space).</p>
  </li>
  </ol>
  <p>As a total newbie I do not know how I can export the function, which is, in .lib with following signature:</p>
  <pre><code>void testfun( char* inp_buff, unsigned short* inp_len, char* buffer_decomp,unsigned *output_len,unsigned short *errorCode)
  </code></pre>
  <p>I want same signature in my dynamic DLL with a different name.</p>
  <p>What to write in header file and .cpp file?</p>