Load Library error Matlab
I intend to work with OpenCV 1.1 version and Matlab2011 together. The program uses call to load library. However, it returns an error

     > In loadlibrary at 347
      In Untitled at 4 
    Error using loadlibrary (line 421)
    There was an error loading the library "C:\Program Files
    (x86)\OpenCV1.1\bin\cxcore110.dll"
    C:\Program Files (x86)\OpenCV1.1\bin\cxcore110.dll is not a valid
    Win32 application.

I have tested the program in Matlab 2008 and 2010 where it gives error of a different kind I have installed X64 Compilers and Tools and my system has Visual Studio2008 and 2010 with SDK7 and 6.1. Also, on doing MEX setup I get the following options
Select a compiler: 

    [1] Microsoft Software Development Kit (SDK) 7.1 in c:\Program Files (x86)\Microsoft Visual Studio 10.0 
    [2] Microsoft Visual C++ 2010 Express in c:\Program Files (x86)\Microsoft Visual Studio 10.0 
     
    [0] None 
     
    Compiler: 1

This also returns the error Error in ==> untitled at 5
loadlibrary(...

I am perplexed at what to do as this problem is persistently appearing. I even followed the thread in [link][1] where tit mentions that 2011 supports load library. So,why does it not work?Please help.


  [1]: http://www.mathworks.it/matlabcentral/answers/27971-loadlibrary-error
Load Library error Matlab
===

I intend to work with OpenCV 1.1 version and Matlab2011 together. The program uses call to load library. However, it returns an error

     > In loadlibrary at 347
      In Untitled at 4 
    Error using loadlibrary (line 421)
    There was an error loading the library "C:\Program Files
    (x86)\OpenCV1.1\bin\cxcore110.dll"
    C:\Program Files (x86)\OpenCV1.1\bin\cxcore110.dll is not a valid
    Win32 application.

I have tested the program in Matlab 2008 and 2010 where it gives error of a different kind I have installed X64 Compilers and Tools and my system has Visual Studio2008 and 2010 with SDK7 and 6.1. Also, on doing MEX setup I get the following options
Select a compiler: 

    [1] Microsoft Software Development Kit (SDK) 7.1 in c:\Program Files (x86)\Microsoft Visual Studio 10.0 
    [2] Microsoft Visual C++ 2010 Express in c:\Program Files (x86)\Microsoft Visual Studio 10.0 
     
    [0] None 
     
    Compiler: 1

This also returns the error Error in ==> untitled at 5
loadlibrary(...

I am perplexed at what to do as this problem is persistently appearing. I even followed the thread in [link][1] where tit mentions that 2011 supports load library. So,why does it not work?Please help.


  [1]: http://www.mathworks.it/matlabcentral/answers/27971-loadlibrary-error