3

I have a C code and I want to use this in C#.

Is there a possibillity except rewriting this code?

2 Answers 2

7

Build the C code as a DLL, and then use "P/Invoke" to call it. You'll need to learn a bit about interop, which is an area I don't know very much about, I'm afraid – but here are a few links:

Sign up to request clarification or add additional context in comments.

Comments

0

Here i got a great tool ,SWIG , can do that. which support a lot of different language, include C# and java.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.