64 to 32 bit Interop - how?

前端 未结 3 1119
无人共我
无人共我 2021-01-04 07:25

I need to integrate some legacy 32-bit code - for which I don\'t have the source code, into a project in such a way that it can be called from a 64-bit .NET assembly. The or

3条回答
  •  天命终不由人
    2021-01-04 08:09

    What you need to do is create two processes communicating with IPC. This way, one can be 32 bit, and one can be 64 bit. You need to create a 32 program which links with the COM object and exposes its API through some IPC mechanism such as a named pipe. This way your .NET program can access it from another process.

提交回复
热议问题