title: C# Application that installs a c++ dll
body: <p>I made a small 32 bit C# application that installs a C++ DLL file from its resources into a folder on HD with the following C# code.</p>
  
  <pre><code>File.WriteAllBytes(folder + @"\test.dll", Properties.Resources.testDll);
  </code></pre>
  
  <p>It works like expected but when I'm using the dll it works partly and then crashes, but if I replace the dll installed by the 32 bit C# application with the DLL from HD that I've added from the beginning to the C# project resources, then it all works.</p>
  
  <p>Why? Is it because the C# installation program is a 32 bit and the installed DLL through the resources is a 64 bit DLL??</p>
  
  <p>Someone who knows how Resources 32/64 bit works?</p>
  
  <p>Regards, Morgan</p>