フィルターのクリア

Can I use C++/CLR assemblies in MATLAB using NET.addAssembly

7 ビュー (過去 30 日間)
Kevin Keeney
Kevin Keeney 2016 年 1 月 23 日
I can build a CLR Visual C++ class library in VS 2013 that gets me a dll. But it seems that MATLAB NET.addAssembly givess me an error when I try to load the assembly. Is this not possible or am I doing something wrong?

回答 (2 件)

Krishna Chaitanya Duggineni
Krishna Chaitanya Duggineni 2016 年 1 月 27 日
Can you share the error message?
  1 件のコメント
Kevin Keeney
Kevin Keeney 2016 年 1 月 28 日
編集済み: Walter Roberson 2016 年 1 月 28 日
>> asm = NET.addAssembly('C:\Users\abehbood\Documents\test_core\VS_solution\Release\core.dll')
Message: Could not load file or assembly
'file:///C:\Users\abehbood\Documents\test_core\VS_solution\Release\core.dll' or one of its dependencies. The
module was expected to contain an assembly manifest.
Source: mscorlib
HelpLink:
I made sure that in my VS properties, "Embed Manifest" is set to Yes.

サインインしてコメントする。


Krishna Chaitanya Duggineni
Krishna Chaitanya Duggineni 2016 年 1 月 29 日
'NET.addAssembly' requires assembly entry in the assembly metadata. Perhaps, some thing has gone wrong while creating this metadata.
Try the following 1) Start the Ildasm.exe ( MSIL Disassembler ). To run the tool, use the Developer Command Prompt (or the Visual Studio Command Prompt in Windows 7). 2) Load the file you wish to test. 3) If ILDASM reports that the file is not a portable executable (PE) file, then it is not an assembly.
Let me know what happens.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by