Explicity set IDL method id from VB6 code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonathan

    #1

    Explicity set IDL method id from VB6 code

    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

  • Armin Zingler

    #2
    Re: Explicity set IDL method id from VB6 code

    "Jonathan" <jono.pare@gmai l.comschrieb
    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

    Comment

    • Jonathan

      #3
      Re: Explicity set IDL method id from VB6 code

      On 16 Jul, 11:15, "Armin Zingler" <az.nos...@free net.dewrote:
      "Jonathan" <jono.p...@gmai l.comschrieb
      >
      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
      Thank you.

      Comment

      Working...