Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Same DLL, different versions
Message
De
22/01/2010 18:56:04
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Same DLL, different versions
Divers
Thread ID:
01445585
Message ID:
01445585
Vues:
106
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform