You cannot load a 32-bit DLL into a 64-bit process on Windows.
I have never tried this on my own, but you could create a separate 32-bit application that can work in another process and act as a proxy for the DLL. Then your application can run 64-bit and interact with the DLL with remote procedure calls through WCF.
If performance is a concern, the best option would be to rebuild the DLL in the 64-bit version, if possible.
Jeffrey l whitledge
source share