Explicity set IDL method id from VB6 code

J

Jonathan

Hi all,
I have a Visual Basic 6.0 application that compiles to an ActiveX dll.
Is there any way I can explicitly set the method id that is generated
for the type library? The problem I'm getting is that newly compiled
versions of the component are incompatible with previously compiled
versions; presumably because the method ids no longer match. Any help,
please?
Regards,
Jonathan
 
A

Armin Zingler

Jonathan said:
Hi all,
I have a Visual Basic 6.0 application that compiles to an ActiveX
dll. Is there any way I can explicitly set the method id that is
generated for the type library? The problem I'm getting is that
newly compiled versions of the component are incompatible with
previously compiled versions; presumably because the method ids no
longer match. Any help, please?
Regards,
Jonathan

This is actually a VB6 and not a VB.net question, though....
After compiling the DLL the first time, set the "binary compatible DLL" to
the compiled DLL (in the project's properties). The next time, all IIDs will
be taken from the binary compatible DLL. This assumes, you don't change the
interfaces (although you can add new members which is still considered being
binary compatible by VB (due to implementing more interfaces internally)).


Armin
 
J

Jonathan

This is actually a VB6 and not a VB.net question, though....
After compiling the DLL the first time, set the "binary compatible DLL" to
the compiled DLL (in the project's properties). The next time, all IIDs will
be taken from the binary compatible DLL. This assumes, you don't change the
interfaces (although you can add new members which is still considered being
binary compatible by VB (due to implementing more interfaces internally)).

Armin

Thank you.
 

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