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.
I have a 32 and 64 bits version of the unmanaged DLL
Simplest approach would be to give the two native libraries the same filename in two different directories, then adjust your application DLL search path depending on the bitness.
http://www.pinvoke.net/default.aspx/kernel32.setdlldirectory