Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Using data driven class instantiation
Versions des environnements
Network:
Windows 2003 Server
I'm wondering how people use the Classes table. I have an issue in that my assembly is "ADC Windows Forms.dll". This .dll is located in the application's folder. The problem, I think, is that when the current directory gets changed, Assembly.LoadFrom in mmFactoryGeneric fails because it can't find the .dll.
Putting the fully qualified path in the Assembly column fixes the problem, but I don't think that's good for production.
I'm thinking I could set Environment.CurrentDirectory when the form gets focus, or something similar, was wondering how others have gotten around this.
Any ideas appreciated,
Mike
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement