How can I use C code in a C # project? Wrapper class?

I have C code and want to use it in C #.

Is there a possibility other than rewriting this code?

+3
source share
2 answers

Create the C code as a DLL, and then use "P / Invoke" to invoke it. I'm afraid you need to know a little about the interaction, which I don’t know very much about, but here are a few links:

+7
source

, SWIG, . , # java.

0

Source: https://habr.com/ru/post/1705012/


All Articles