title: Unable to load 64-bit dll Error in C#
body: <p>I have 64-bit c++ ddl, which I have to use in my c# application. I used it like</p>
  
  <pre><code>[DllImport("sampleDll.dll",
      EntryPoint = "sampleFunction",
      CharSet = CharSet.Ansi,
      CallingConvention = CallingConvention.StdCall)]
      public static extern int sampleFunction(char[] ch, int i);
  </code></pre>
  
  <p>But when i try to run the application it shows error as</p>
  
  <p><strong>"Unable to load DLL 'sampleDll.dll': The specified module could not be found."</strong></p>
  
  <p>Iam using 64-bit OS. I tried by <strong>copying the dll into System32 folder</strong></p>
  
  <p>But still Iam getting the same error.</p>
  
  <p>Please let me know the workaround for this problem........</p>