What you have to do is write a wrapper application that hosts the 32-bit DLL file, in a 32-bit process.
Your 64-bit application then has to talk to this 32-bit process, through network means, or by making the DLL functions available through a COM object, or similar.
You can not run a 32-bit DLL inside a 64-bit process, no matter how hard you try, so you need to run it in a 32-bit process.
If compiling your application for 32-bit only is not an option, you have no choice but to create a host application.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…