title: Simple OpenCV problem
body: <p>Why I try to run the following OpenCV program, it shows the following error :</p>
  
  <p>ERROR:</p>
  
  <pre><code>test_1.exe - Application Error
  
  The application failed to initialize properly (0x80000003). 
  Click on OK to terminate the application.
  </code></pre>
  
  <p>CODE:</p>
  
  <pre><code>#include "cv.h"
  #include "highgui.h"
  
  int main()
  {
  IplImage *img = cvLoadImage("C:\\face.bmp");
  
  cvSetImageROI(img, cvRect(100,100, 100, 100));
  cvAddS(img, cvScalar(50), img);
  cvResetImageROI(img);
  cvShowImage("Test", img);
  
  cvWaitKey(0);
  
  return 0;
  }
  </code></pre>
  
  <p>When i press F5(im using vs2008express), the program encounters a break point...i have attached a picture...dont know, whether, it will help or not.</p>
  
  <p><a href="http://i39.photobucket.com/albums/e179/iamcreasy/error.jpg" rel="nofollow noreferrer">Error Snapshot Link</a></p>
  
  <p>It is not that, only this program is producing this error, but also any kind of image manipulation funciton containing (OpenCV)program is resulting in this sitution. 
  Such as : cvSmooth</p>
  
  <p>one last thing, it there any dedicated OpenCV forum or sth like that?</p>
  
  <hr>
  
  <p>I am an administrator.So, yes, ive the permission.</p>
  
  <pre><code>a version mismatch.
  </code></pre>
  
  <p>sorry, i didn't get it?Version mismatch with what?</p>
  
  <p>But, i have found the error using dependency walker.</p>
  
  <pre><code>Warning: At least one module has an unresolved import due to a missing export 
  function in a delay-load dependent module.
  </code></pre>
  
  <p>and also found that, it is a common problem, and found some info in the FAQ of DW...</p>
  
  <pre><code>Why am I seeing a lot of applications where MPR.DLL shows up in red under 
  SHLWAPI.DLL because it is missing a function named WNetRestoreConnectionA? 
  I also get a "Warning: At least one module has an unresolved import due to 
  a missing export function in a delay-load dependent module" message.
  
  Function name : WNetRestoreConnectionA
  </code></pre>
  
  <p>But there is no guideline about how to solve it. Though, they say, it is not a problem.</p>
  
  <p>i googled a little and found a suggestion.It says,</p>
  
  <pre><code>Turn off your compilers setting to assume you are programming for Win9x. 
  (I just lost which setting but it is not that difficult, use a #define...)    
  </code></pre>
  
  <p>But i have no idea, how to do that in Visual Studio 2008 express.</p>
  
  <p>Any suggestion how to solve it...</p>