title: How to Import a C/C++ dll to .NET application
body: <p>In my new project I want to use a existing C C++ functions . For that I would need to add the C/C++ dlls to C# project.</p>
  
  <p>My C/C++ projects is of type UnManaged and it is not a COM Project. I have seen few articles after from MSDN and tried:</p>
  
  <pre><code>[DllImport("user32.dll", EntryPoint="MessageBoxA")]
  </code></pre>
  
  <p>But I am not sure Where should  I place the <code>user32.dll</code> or <code>my.dll</code>. Do I need to place my dll in GAC or in some other physical folder. </p>
  
  <p>If that is going  to be a physical folder then , Don't I need to use either relative or absolute path?</p>
  
  <p>Also read few articles talking about porting the C++ dlls using InterOp but not quite sure how to start with.</p>