title: LoadLibrary fails under Vista x64
body: <p>Right after I moved from XP to Vista,I realized my C# programs don't work.</p>
  
  <p>This is the situation: I wrote a C++ dll that I use in my C# application.The DLL worked fine in XP,but when I moved to Vista it's not longer working in C#.</p>
  
  <p>I tested it in Delphi,works fine,but C# - no.</p>
  
  <p>I wrote additional code to make my check easier in C#.</p>
  
  <pre><code>        if (LoadLibrary("blowfish.dll") == 0)
          {
              Misc.LogToFile("error", true);
              Application.Exit();
          }
  </code></pre>
  
  <p>It doesn't need C++ runtime,because Its compiled with the libraries and it works in Delphi on Vista,but not C#.</p>
  
  <p>Where could the problem be?</p>
  
  <p>Thanks in advance.</p>