PDA

Click to See Complete Forum and Search --> : Dll version compatibility


wernerh
Mar 11th, 2003, 02:31 AM
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.

crptcblade
Mar 11th, 2003, 06:36 AM
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.

daughey
Mar 19th, 2003, 06:22 AM
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