Hi ,
I am in a need to add dll's dynamically to the References of Solution Explorer in the application(VS 2008) based on user's selection.How can I proceed with this requirement.
Any pointers to this would be of great help.
Hi ,
I am in a need to add dll's dynamically to the References of Solution Explorer in the application(VS 2008) based on user's selection.How can I proceed with this requirement.
Any pointers to this would be of great help.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
chinnasamyPosted Jan 7, 2009, 7:39 AM
Assembly.LoadFrom() - to load the DLL , will Return a Assembly Object,
In Assembly Object we have a method called GetTypes(), this will return different Classes inside,
By using GetTypes(), we may get the classes resides in the DLL in the form of Type, Using any particular type object, we can retrive any methods to start new application, Type object have got a method called GetMethod() , which will return a pointer to the method, means, will return MethodInfo object, by using this MethodInfo object, we can Invoke any particular method to start own/new main thread for a specific DLL, from that method onwards your New Main Thread will be started.
MethodInfo object have got Invoke() method to run any specific method inside that DLL.