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

4 views (last 30 days)
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!

Answers (1)

Madhura Suresh
Madhura Suresh on 26 Aug 2013
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.

Products

Community Treasure Hunt

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

Start Hunting!