当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Loading a 32-bit dll in a 64-bit process

问题描述:

This question already has an answer here:

  • Target 32 Bit or 64 Bit native DLL depending on environment

    3 answers

  • DllImport - An attempt was made to load a program with an incorrect format [duplicate]

    1 answer

网友答案:

You cannot load a 32 bit DLL into a 64 bit process. To support this you will have to have two different EXE's, one compiled as 64 bit and one compiled as 32 bit.

If you run the 64 bit process and encounter a 32 bit dump, you'll have to launch the 32 bit version of the EXE to process the dump file. Once it is processed you can use some sort of IPC (Interprocess Communication) mechanism to send the results back to the 64 bit process.

分享给朋友:
您可能感兴趣的文章:
随机阅读: