Hi, I am trying to load a 64bit dll using 64bit MATLAB 2012b but get an error that I don't know how to get rid of. I was wondering if anyone can help.
Before using loadlibrary function, I installed Microsoft Windows SDK 7.1. Then I installed SDK 7.1 patch from Microsoft as it is suggested in the following link:
After installation, mex -setup is able to find SDK 7.1:
[1] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0
But I don't know why it is in x86 folder, but I had no choice so I chose this one as compiler.
Then I used loadlibrary to load the dll, but it gives me the following error message:
Error using loadlibrary (line 419) There was an error loading the library "D:\Lingmei\Interface\dsApi.dll" D:\Lingmei\Interface\dsApi.dll is not a valid Win32 application.
The only possible cause that I can think of is that the location of compiler is under x86 path. But SDK 7.1 and its path have only one version, there is no 64bit or 32bit choice. Or maybe something else has to be done but I don't know.
Can anyone give some suggestions? Thanks a lot.