开发者

Problems in building a Matlab .Net project

I'm trying to build a C# application which uses a Matlab library built using Matlab Builder NE. I've referenced both MWArray.dll and the Matlab-generated dll, but I still get get the following error message:

The type 开发者_如何学运维or namespace name 'MWMCR' could not be found (are you missing a using directive or an assembly reference?)

More info:

  • I'm using VS2010 with the .NET 4 framework.
  • The Matlab dll was not built by me, and I'm not sure which Matlab version nor which .Net Framework it requires (could this be the issue?)


You said you referenced the dlls, but didn't say precisely where you referenced them. I had a similar issue the first time I attempted to get a MATLAB dll from Builder NE working within a C# project. Ultimately, it turned out that simply referencing the MATLAB dlls from within the .NET assembly that made use of them was insufficient. It wasn't until I referenced the MATLAB dlls at the top level of the project that they actually loaded at runtime and things started working as expected. Give it a try. Add a reference to the dlls at the top level of the project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜