COM Interop issue.

F

Frank Rizzo

I have my .NET library which I want to call from VB6. Everything works
great, except that everytime I recompile my .NET lib and regasm it, the
binary compatibility is broken and I have to rereference from VB6 and so
forth.

How do I make my .NET lib keep binary compatibility (i.e. guid, etc...).

Thanks.
 
A

Adrian Forbes [ASP MVP]

You might want to try adding your own GUIDs to interfaces and classes to
keep them constant. Get a guid (using guidgen or the VS.Net IDE Tools menu)
and

<GuidAttribute("AF06421E-F197-4be4-8842-3EE44D3C6E89")> _
Public Class TestObject

You can do the same to your interfaces.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top