Writing a DLL in C/C++ for .Net interoperability

后端 未结 4 1270
星月不相逢
星月不相逢 2020-12-04 18:26

In my C# application, I would like to write a part of the code in C. I plan to write a DLL witch would be interoperable with .Net. How can I do that?

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 19:00

    Through P/Invoke layer.

    http://en.wikipedia.org/wiki/Platform_Invocation_Services

提交回复
热议问题