title: How to use the correct unmanaged DLL file according CPU architecture? (32 / 64 bits)
body: <p>I have to use a C++ DLL file from an ASP.NET site. The site will be hosted on both 32 and 64 bits environments.</p>
  
  <p>I have a 32 and 64 bits version of the unmanaged DLL file. How do I import the methods from the correct one according the current server architecture?</p>
  
  <p>Like someone posted, this could be handled as a deployment problem. My concern is: the web application consuming this DLL file is huge, and we don't have a deployment document. No one will remember to deploy the correct DLL file, so I'm trying to remove the human factor from the solution :)</p>