How can I call a 32-bit DLL from 64-bit code?

后端 未结 3 1066
感情败类
感情败类 2020-12-19 03:27

I have some 32-bit DLLs that don\'t have matched 64-bit DLLs. How can I invoke these DLLs from a 64-bit application written in Delphi XE2?

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 04:05

    I had the same issue some time back and found this link:32-bit DLLs in 64-bit environment

    The 32-bit DLL was written in Delphi, ages ago, and we now had a need to call it from a 64-bit platform- but we don't have a 64-bit Delphi.

    I've made it work- though it seems a bit of a kludge, it was better than getting the DLL rewritten in 64-bit (we'd have had to purchase a 64-bit version of Delphi, or start from scratch in something else).

    NB while this needs some hacking, no programming is required- it uses components that came with Windows. Works in (at least) Windows 7, Windows 2008.

提交回复
热议问题