Link to home
Start Free TrialLog in
Avatar of rtarna
rtarna

asked on

Import and use a Type Library with VB.NET

I have a third-party app that's used to FTP files from our server to theirs.  The root directory of this app contains a ProgAPI.exe and ProgAPI.tbl.
If I drag this .tlb file into my vb.net app and drop it, it exposes some methods within the Object Browser window.  
I tried to reference both of these files, but got errors: "A reference to '' could not be added.  Please make sure that the file is acceptable, and that it is a valid assembly or COM component.

Is there any was to import, reference these files so I could use the exposed methods? If yes, I need to exactly how.
ASKER CERTIFIED SOLUTION
Avatar of newyuppie
newyuppie
Flag of Ecuador image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rtarna
rtarna

ASKER

I tried that, but kept getting errors: "Not an importable DLL.  Please make sure the DLL is a COM type." Or something like that.  I ended up writing a VB6 DLL (I still can't believe I went backwards in technology) that referenced my tlb library.  Generated dll from that.  And when I referenced that dll from my .net project, the tlb library carried over it's dll through Interop.
Thanks anyway.