Z
ZhangZQ
The Assembly provides GetTypes() for retrieving the defined type, is there a
way to add my type dynamically?
Thank you very much!
way to add my type dynamically?
Thank you very much!
The Assembly provides GetTypes() for retrieving the defined type, is
there a way to add my type dynamically?
Chris Taylor said:Hi,
You do not need to use Assembly.LoadFrom and Activator.Create..., I gave
both as an alternative.
Try the following.
MyOCXLib.MyObject myObj = (MyOCXLib.MyObject)Activator.CreateInstance(
"MyOCXLib.dll", "MyOCXLib.MyObject" );
I did not test this so excuse any typos.
Hope this helps
Chris Taylor