Is it possible to access a 64-bit dll from a 32-bit application?

前端 未结 4 1871
南旧
南旧 2020-12-06 01:35

I have a Delphi application similar to Taskbar Shuffle that includes a hook dll.

EDIT: This hook DLL communicates with the main app by sending windo

4条回答
  •  既然无缘
    2020-12-06 02:25

    I just found out this solution, from CodeCentral: http://cc.embarcadero.com/Author/802978

    It allows to call any 64 bit library from 32 bit code.

    It's a complex solution, running an asm-written 64 bit executable in the background, then communicating with it using memory mapped files and windows GDI messages to launch some 64 bit functions from a 32 bit Delphi process.

    There is a sample which is able to load any 64 bit library, then call any function of this library, from a 32 bit executable.

    Seems to work well. In all cases, code is worth looking at it: it's technical, but well designed!

提交回复
热议问题