How to create dll in C++ for using in C#

前端 未结 4 1206
失恋的感觉
失恋的感觉 2020-12-28 09:27

I\'ve a little question to ask you.

I have one C++ source and one header files. The C++ file uses windows.h library, makes operations using serial port(basic operati

4条回答
  •  感动是毒
    2020-12-28 09:59

    You may use C# DllImport and Dllexport for DLL Interop walkthrough as a starting point. And here is the Platform Invoke Tutorial

    Hope this helps.

提交回复
热议问题