Results 1 to 3 of 3

Thread: Dll version compatibility

  1. #1

    Thread Starter
    Addicted Member wernerh's Avatar
    Join Date
    Sep 2000
    Posts
    170

    Question Dll version compatibility

    How do I make my dll version independant.

    I have 1 dll and inside that dll, I call another dll. So my question is how can I recompile my second dll and register it, without having to recompile my first dll.

    My second dll is not a reference in my first dll, instead i use
    createobject to set a reference to my second dll.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    If you don't break compatability on the second DLL, then there should be no reason why you would have to recompile the first. The way to keeps things version ignorant is to use CreateObject to establish the reference at runtime.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Junior Member
    Join Date
    Feb 2003
    Location
    UK
    Posts
    23
    crptcblade's right.

    Your 2nd DLL should keep "Binary Compatibility" to ensure that you don't need to recompile your 1st DLL.

    I'm not so keen on the alternative of CreateObject as you can't guarantee that the 2nd DLL hasn't changed.

    Unless you're doing all your processing work in the Class_Initialize event, or using Interfaces defined elsewhere, you are going to have to early bind to your 2nd DLL's classes. In which case maintaining compatiblity is your only way.

    Enjoy
    Dave

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width