我需要從C#winforms主機項目動態加載DLL中的一些.NET控件。Clr dll .net控件
例如:
1.DLL contrains CONTROL1
2.DLL contrains控制2
3.dll contrains CONTROL3
主機應用可加載任何此dll·s的,得到控制從DLL並把它放在自我形式。
我想:
__declspec(dllexport) TestCLRPlugin::Properties^GetControl()
{
return gcnew TestCLRPlugin::Properties();
}
但是,clrcall方法不能從DLL導出。