Re: TLB losing its reference in VBA

Brian Graf <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.general
Message-ID <000e01c2159b$ea53a660$0a02a8c0@dilbert>
Take a look at System.Runtime.InteropServices.GuidAttribute

Brian Graf
http://radio.weblogs.com/0108189/

-----Original Message-----
From: The DOTNET list will be retired 7/1/02
[mailto:[email protected]] On Behalf Of Noam Arbel
Sent: Sunday, June 16, 2002 8:53 PM
To: [email protected]
Subject: [DOTNET] TLB losing its reference in VBA

Hello,

I have written a C# assembly that I am using through COM interop. I need
to use it through an application that supports VBA. In the VBA
environment, I add the tlb through the references dialog, and all works
great.

But when I have to re-build the C# assembly, to fix bugs and such, next
time I enter the VBA, the reference is lost. It looks like the VBA
environment looks for the tlb using its GUID, and every time I compile
with VS..NET, the tlb gets a new GUID.

Is there a way to cause VS.NET to use the same GUID, something like
binary
compatibility on the dll/tlb?

Thanks,

Noam

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.