I want to add a C file into my .NET application.
How can I built this?
How can i write unmanaged code in C#.
Can someone explain with few lines code.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You either have to build the C file into it’s own DLL and then use P/Invoke in your C# code to call them or…
You could also try to port the C code to C# which would give you a completely managed codebase.