Reputation: 63
Is it possible to use C code in .NET?
Upvotes: 3
Views: 549
Reputation: 499072
Not directly.
If you write a com DLL in C, you can use it in .NET using PInvoke and interop.
See Interoperating with Unmanaged Code on MSDN.
Alternatively, use managed C++/C++/CLI.
Upvotes: 3