Call MATLAB Function from C# Client

4 ビュー (過去 30 日間)
Yuan Zhang
Yuan Zhang 2021 年 2 月 5 日
回答済み: Manas Meena 2021 年 2 月 11 日
I am using Visual Studio Professional 2019 and MATLAB 2020b. I was trying to run the following example code but receivng the exception that "Unable to cast COM object of type 'MLApp.MLAppClass' to interface type 'MLApp.DIMLApp". Does anyone know why? Thanks.
System.InvalidCastException: 'Unable to cast COM object of type 'MLApp.MLAppClass' to interface type 'MLApp.DIMLApp'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{669CEC93-6E22-11CF-A4D6-00A024583C19}' failed due to the following error: Unspecified error (0x80004005 (E_FAIL)).'

回答 (1 件)

Manas Meena
Manas Meena 2021 年 2 月 11 日

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by