Reputation: 18679
I have a C library which I need to call from an ASP.NET / C# app, how do I go about doing this?
Upvotes: 0
Views: 1788
Reputation: 88796
If it's a DLL, you can use P/Invoke to make function calls to it.
Upvotes: 0
Reputation: 4546
P/Invoke is your friend here, assuming you mean a true "raw" DLL, and not a COM object implemented in C.
Upvotes: 1
Reputation: 9244
[DllImport]
Take a look at http://pinvoke.net/ - that should get you going! Good luck.
Upvotes: 5