What is the best way to integrate x32 lib with an x64 process (without converting lib to x64)?

I inherited the lib compiled on x32 and I cannot compile it on x64. I think maybe to combine lib with the x32 process and then run it in the x64 process by calling the CreateProcess win api function. then I will use shared memory to transfer data between the lib x32 APIs in the x64 process.

Am I missing something (his look is very complicated)?

+3
source share
2 answers

They answer that you cannot do this directly. Processes are either 32-bit or 64-bit. A 64-bit process cannot load 32-bit code.

, 32- 32- 64- .

.

, , 32- COM-API COM- proc 64- . COM .

, ; , . - .

. , .

RPC: . .

+3

, 32- COM + 64- . , . , .. , .

+2

Source: https://habr.com/ru/post/1741638/


All Articles