title: Create interop dll from .tlb file
body: <p>I have a C++ project and a c# project. The C# project accesses methods of the C++ project through 2 interop dlls called interop.X.dll and interop.XCom.dll.</p>
  
  <p>When my C++ project rebuilds it creates X.tlb and XCom.tlb files, it also creates x_i.c, x_h.h, xCom_i.c, xCom_h.c files. I have found that the files are created due to project settings in "configuration properties -> MIDL -> output", as displayed below;</p>
  
  <p><a href="https://i.stack.imgur.com/YhwOK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YhwOK.png" alt="enter image description here"></a></p>
  
  <p>What I need to know is how to create the 2 interop dlls, which doesn't get created automatically, using the .tlb and other c files. I have tried using <code>tlbimp x.tlb /out:Interop.x.dll</code>, but the created dll doesn't seem to work.</p>
  
  <p>Thanks.</p>