필터 지우기
필터 지우기

how to register dll file in matlab donet builder

조회 수: 1 (최근 30일)
renoald Tang
renoald Tang 2012년 3월 10일
Hai , i have build the MagicDemoComp file to dotnet dll file using matlab dotnet builder. I using this dll file in visual studio 2005. I add reference to MagicDemoComp.dll, MWArray.dll ,mlapp.tlb , when i debug , the error "MagicDemoComp.Library not regitered" and " MWComutil Library not registered" are happen. How to register the dll file in window ? using Cmd or matlab commond prompt? I need to install MATLAB Component Runtime (MCR) for running the debug in visual studio ?

채택된 답변

Friedrich
Friedrich 2012년 3월 10일
Hi,
you don't need the MCR. See here:
Do this for the MWComutil.dll and MagicDemoComp.dll. The mwregsvr command should be known if MATLAB or the MCR is installed correctly (mwregsvr resides in the same folder as needed DLL's). In the case it is not kown, make sure that the MATLABROOT\runtime\ARCH folder is on your PATH. (MATLABROOT = installation folder of MATLAB, ARCH = system architecture (win32 or win64)).
Since registering a COM DLL means modifying the registry, make sure that you have the permission for that.
In addition, you built a COM DLL, so you dont need the MWARRAY.DLL and you also don't need the mlapp.tlb
  댓글 수: 4
renoald Tang
renoald Tang 2012년 3월 12일
Yes, on deployed machine. But there not have any error when i install the visual studio. How i resolve it ? Uninstall and install again Visual studio ?
Friedrich
Friedrich 2012년 3월 12일
Just download the Visual Studio Redistributable package in the matching bitness and version and install it. That's all you should need. You don't have to install the full Visual Studio.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deploy to .NET Applications Using MWArray API에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by