add reference to a .exe
-
i have a program that i want to be able to dynamicaly add ref to dll that i build at a latter date. my plan is to store these ref. is an xml file and when i run my program read the xml file and add the ref to the dll's. but i am unsure how to add dll ref to a already compailed program
Thanks, Chad Aiena
-
i have a program that i want to be able to dynamicaly add ref to dll that i build at a latter date. my plan is to store these ref. is an xml file and when i run my program read the xml file and add the ref to the dll's. but i am unsure how to add dll ref to a already compailed program
Thanks, Chad Aiena
That depends on if the .EXE is a COM server or another .NET app or not. If it's neither one of those, you cannot add a reference to it. You also cannot add a reference at runtime. It take it this is for plugin support for your app?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
That depends on if the .EXE is a COM server or another .NET app or not. If it's neither one of those, you cannot add a reference to it. You also cannot add a reference at runtime. It take it this is for plugin support for your app?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007the dll is a csharp dll i want to implment a menu that i can add calls to a dll at a later time for examlpl i would have a job that downloads files from a ftp site and uses the files to update a back end database and i could also have another job that downloads some zip file for a user to process at a latter time. and i was thinking it would be easier if i just had one menu that i could add ref. to different dll's to handel the custom job's i want to setup rather than recompiling the menu each time
Thanks, Chad Aiena
-
the dll is a csharp dll i want to implment a menu that i can add calls to a dll at a later time for examlpl i would have a job that downloads files from a ftp site and uses the files to update a back end database and i could also have another job that downloads some zip file for a user to process at a latter time. and i was thinking it would be easier if i just had one menu that i could add ref. to different dll's to handel the custom job's i want to setup rather than recompiling the menu each time
Thanks, Chad Aiena
Your talking about adding plugin support to your application. There is no "adding a reference" here. Your code has to look in a folder for assemblies that have classes that implement an Interface that your app is going to expect these .DLL's to implement. Google for "c# plugin support". You can start with this[^] little article.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007