title: DLL fails to load in windows server 2012
body: <p>My application written in VS2005 is a 32 bit software. It runs fine on Windows server 2008, windows 7 (64 bit) but does not run on Windows server 2012. I tried to find out which DLL is missing because I get an error from LoadLibrary "A dynamic link library (DLL) initialization routine failed". The code giving error is as under</p>
  
  <pre><code>m_plugin = LoadLibrary( pluginPath.c_str() );
  if ( !m_plugin )
  {
      const string error( "Failed to load Library \"" + pluginPath + "\" " +  GetLastErrorStdStr() );
      CBLogger::log( error, HIGH_IMPORTANCE );
      return false;
  }
  </code></pre>
  
  <p>To fix the problem I have tried installing C++ redistributable version 8.0.61001 but it did not help. </p>
  
  <p>I even looked at dependency walker (I am really new to it) and did find some windows dlls (eg msvcr80.dll) which were shown in yellow. I copied those into my application folder but that did not work either.</p>
  
  <p>Could some one please give any ideas as to how should I resolve this? What version of redistributable should I install or some tips on how to use dependency walker. Please help</p>