32 bit dll importing in 64 bit .Net application

后端 未结 5 2038
天涯浪人
天涯浪人 2020-12-30 10:24

I\'m having a problem, I\'ve been trying to solve it since yesterday but no luck. I have a 32-bit Delphi DLL which I want to import it in to a .NET WIN Application. This ap

5条回答
  •  臣服心动
    2020-12-30 10:55

    A general idea could be to wrap your (unmanaged) 32-bit DLL with a managed 32-bit wrapper dll and make it COM visible. This allows calls to your wrapper DLL via its COM interface.

    You can than use a COM surrogate to make your COM dll appear as an out of process COM server. Take a look at this SO question for some further information on this topic: Access x86 COM from x64 .NET.

提交回复
热议问题