title: Using tlbexp.exe on a COM dll
body: <p>I am trying to set up communication between <a href="http://en.wikipedia.org/wiki/Gupta_Technologies" rel="nofollow noreferrer">Centura</a> and a COM .dll. (Downloaded from <a href="http://download.resip.fr" rel="nofollow noreferrer">http://download.resip.fr</a> for a database import)</p>
  
  <p>Centura requires a .tlb file to be able to communicate to this component. Normally I would use <code>regasm /tlb</code> to generate the .tlb but seeing as it is a COM .dll this is not possible.</p>
  
  <p>I found that I could use tlbexp for .NET dll's: <a href="http://msdn.microsoft.com/en-us/library/hfzzah2c(v=vs.80).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/hfzzah2c(v=vs.80).aspx</a></p>
  
  <p>I tried this out, knowing it would probably fail (as I have COM .dll). I received this error:</p>
  
  <blockquote>
    <p>TlbExp : error TX0000 : Could not load file or assembly 'file:///C:\Windows\system32\ResipBcb.dll' or one of its dependencies. The module was expected to contain an assembly manifest.</p>
  </blockquote>
  
  <p>Using Dependency Walker I noticed two .dll's missing. I found ieshims.dll online but I can't find the wer.dll. See <a href="https://stackoverflow.com/questions/2465111/dependency-walker-reports-ieshims-dll-and-wer-dll-missing">this question</a>.<br>
  I don't know if the tlbexp failure has anything to do with this file that is missing?</p>
  
  <p>To sum up, my question is: 
  How do I get a .tlb from this .dll? I can't seem to find any way to extract the .tlb out of this COM .dll.</p>
  
  <p>Best regards<br>
  Clint Cambier</p>