Ways to access a 32bit DLL from a 64bit exe

后端 未结 3 674
心在旅途
心在旅途 2020-12-03 03:22

I have a project that must be compiled and run in 64 bit mode. Unfortunately, I am required to call upon a DLL that is only available in 32 bit mode, so there\'s no way I ca

3条回答
  •  無奈伤痛
    2020-12-03 04:10

    None. Point. 32 bit dll in 64 bit process = no go.

    What I do is run a 32 bit wrapper process and communicate with it using WCF - much like you do. I can force the OS to run 32 bit.

    I have a core library (Tradex.Connectivity.Core), with the platform independant .NET code. I have two wrappers (Wrapper32.exe, Wapper64.exe) that start and load the independent code and then load the class (managed C++). Works like a charm.

    THat pretty much is the only way for me - you can not crss load 32 and 64 bit elements.

提交回复
热议问题