How to use the 32-bit dll of Visual Studio which is using MATLAB dll (32-bit) on 64-bit windows 2008?

4 次查看(过去 30 天)
Hi, We have a 32-bit MATLAB (with compiler) installed on a 32-bit Windows XP.
We develop MATLAB function on the 32-bit Windows XP ,and we compiler this function for using in Version Studio application.
The MATLAB Version is 2007b, and to build .NET component is the Microsoft .NET Framework SDK 2.0.
We try the VB application on 32-bit server , it is work. But it is not work on 64-bit Windows 2008 server which had install 32-bit MATLAB runtime in "C:\Program Files (x86)" and had add the path to environment settings.
The error message is "Could not load file or component 'MWArray, Version=2.0.0.0, Culture=neutral, PublicKeyToken=e1d84a0da19db86f'"
How do we operate in order to make the VB application normal operation on 64-bit server? Thank you!

回答(1 个)

Madhura Suresh
Madhura Suresh 2013-8-26
The bitness of the DLL, MATLAB and your Visual Studio must match. If you want to use your 32-bit DLL along with 32-bit MATLAB in Visual Studio, you will have to make sure that your Visual Studio project is also 32-bit.

类别

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