Why am I getting an error when adding a reference to MATLAB Type Library in my Visual Studio project?

When I try to add a reference to the MATLAB Type Library in my Visual Studio application, I am receiving the following error:
A reference to 'C:\Program Files\MATLAB\R2008a\bin\win32\mlapp.tlb' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

 채택된 답변

The reference error is occuring because MATLAB is not registered as a COM server. To work around this issue, register MATLAB as a COM server by opening a Command Prompt window, and using cd, change to the bin\win32 subdirectory of the MATLAB installation directory and run the following command at the DOS prompt:
matlab /regserver

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2008a

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by