I have a C/C++ shared library that I compiled using Visual Studio 2005. When I load the library with MATLAB's Generic DLL function LOADLIBRARY on a Windows machine that does not have Visual Studio installed, I encounter the following error:
ERROR: Application failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
I encounter this error even if the Microsoft Visual C++ 2005 Redistributable Package (Visual C++ Runtime Libraries) is installed on that machine.
I also get the same error when trying to load a DLL compiled with Visual Studio 2008 in MATLAB on my Windows machine, which only has Visual Studio 2005 installed. I have installed the 2008 version of the Microsoft Visual C++ Redistributable Package on my machine, though.
Best Answer