Error referencing type library

Hello,

Using VB Express 2005 I'm trying to manually add a reference to a type library (.tlb) created with MICROSOFT VISUAL C 6.0 licensed product (Microsoft IDL compiler) and receive the following error:

"A reference to <path to .tlb file here> could not be added.Please make sure that the file is accessible, and that it is a valid assembly or COM component."

This type library is provided by a company who makes available their OLE interface to their program, it works correctly in VB6.

I'm not sure where to go from here, is there some other method I could try

Thank for you help,

William



Answer this question

Error referencing type library

  • delu

    If your COM object is registered ( and if it's not, what good is it ). go to references/Add reference/COM ( in the tab ) and select it there.



  • joe123163029

    Hello,

    As I said, it works with VB 6 so its registered and working. In VB 6 all I have to do is select Project-->References and add the reference to the .tlb file and its working. When I try the same thing in VB Express the error message appears. I think the company who distributes the program and interface made it in an exe file not a dll, would that make a difference with .NET apps

    Thanks

    William


  • Error referencing type library