Search code examples
delphidll32bit-64bit

Load 32-bit Zint.dll in Delphi 64-Bit Program


I'm using Zint.dll to show a QR Code in a Delphi program. When I compile to 32 bit it loads the QR Code properly but when I compile to 64 bit it does not load, as the DLL is 32.

Is there any way to convert a DLL to a 64-bit version so it should be working on with my program?


Solution

  • You can't just convert an existing 32bit executable into a 64bit executable. Its source code needs to be recompiled into a native 64bit executable.

    If you can't recompile the DLL yourself, and can't obtain a precompiled 64bit version of the DLL from somewhere else, then you will just have to load the existing 32bit DLL into a separate 32bit process that uses IPC (interprocess communication) techniques (sockets, pipes, RPC, etc) to communicate and exchange data back and forth between your 32bit and 64bit processes as needed.