title: Cannot load dll file in my project
body: <p>In my project i cannot load dll file </p>
  
  <p>dll file --> platform target is x86 </p>
  
  <p>and my project --> platform target is Anycpu</p>
  
  <p>machine is running a 64 bit OS</p>
  
  <p>and this is the code i use</p>
  
  <pre><code> pDll = NativeMethods.LoadLibrary(dllname);
  // some code here
  static class NativeMethods
  {
      [DllImport("kernel32.dll")]
      public static extern IntPtr LoadLibrary(string dllToLoad);
  
      [DllImport("kernel32.dll")]
      public static extern IntPtr GetProcAddress(IntPtr hModule, string procedureName);
  
      [DllImport("kernel32.dll")]
      public static extern bool FreeLibrary(IntPtr hModule);
  }
  </code></pre>
  
  <p>why i cannot load this dll file ?</p>
  
  <p>sorry for my bad English</p>