런타임시 C# winforms 호스트 프로젝트에서 DLL의 일부 .NET 컨트롤을 동적으로로드해야합니다. 예를 들어Clr dll .net control
:
가 1.dll이 contrains 제어 1가
2.dll이 control2에게 contrains
3.dll이 control3이
호스트 응용 프로그램이 DLL-들 중 하나를로드 할 수 contrains 얻을 dll에서 통제하고 각자 모양에 그것을 두십시오.
내가 시도 : 은__declspec(dllexport) TestCLRPlugin::Properties^GetControl()
{
return gcnew TestCLRPlugin::Properties();
}
하지만, clrcall 방법은 DLL에서 내보낼 수 없습니다.