Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Same DLL, different versions
Message
From
22/01/2010 18:56:04
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Same DLL, different versions
Miscellaneous
Thread ID:
01445585
Message ID:
01445585
Views:
107
I have written an app that runs DB2 on an AS400 via C#. We are upgrading our client machines with a DB2 client V6R1 throughout the enterprise. My C# middleware DLL references a DLL called IBM.Data.DB2.iSereies.dll. Unfortunately, the old and new versions of this DLL don't play well together - I read a piece on the internet that suggested I recompile the C# app with the new version of the IBM dll to make it work. This works for a local station with the new client, but not on the old.

The problem is now I have two versions of my C# dll,m old client and new client. Is there a way for it to 'see' what version the client is running (old or new) and utilize the appropriate IBM dll at runtime? Maybe late binding or something? I don't know how to recompile the app and still use one of two possible dlls in code. First prize, of course, would be to not rewrite any code (or at least as little as possible)

Thanks for your help.
Next
Reply
Map
View

Click here to load this message in the networking platform