简体   繁体   中英

access 64bit dll from 32bit process using C++

I do release that its not possible to load 64bit dll into 32bit dll in the same process. However i can put my 64bit dll into com and access that com from my 32bit app. Can anyone provide me a sample for doing so? Are there any other means to solve this issue?

Note: I cannot build the 64bit dll to 32 bit as its external 3rd party dll and i cannot convert my 32bit process to 64 bit as its a very huge application.Converting that to 64bit would require me many years.

Any help would be appreciated

you can leverage process communication about access 64bit from 32bit Process.
Below are some steps.

  1. Make a COM server, example , you can modify project property to generate 64bit program.

  2. Define and implement com interface , in COM server, you load 64bit dll, and wrapper dll function.

  3. 32bit App call COM server interface( CLSCTX_ACTIVATE_64_BIT_SERVER ), send data by parameter and get result.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM