Explicity set IDL method id from VB6 code

  • Thread starter Thread starter Jonathan
  • Start date Start date
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
 
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
 
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.
 
Back
Top