Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

How to reference GAC component from VB5/6

I am writing a VB5 Com add-in for Outlook.  This references a 3rd party managed code dll, which has now been moved to the Global assembly cache (it is also used by word).

How do I reference it ? In .NET there is an assembly tab, but in VB5/6 all I can reference is a dll or tlb, and if I generate a tlb then this works on my machine but not when the code is distributed

I could reference the underlying DLL e.g. in c:\windows\gac\... but this seems bad and not the point of assemblies. Am I missing something obvious ?
(Nb there are a lot of good reasons not to rewrite in VB.NET so that is not a useful answer)

Thanks
Jim

jim dallas
Wednesday, March 03, 2004

answering my own question (embarrassing)

the trick seems to be to generate the tlb (via regasm), and then select it in the list of references - (not navigate to it via browse) - not sure why this makes a difference but it seems to

jim dallas
Wednesday, March 03, 2004

Probably CLSID vs. filename.

mb
Saturday, March 06, 2004

*  Recent Topics

*  Fog Creek Home