tags:

views:

99

answers:

3

I have a C library which I need to call from an ASP.NET / C# app, how do I go about doing this?

+4  A: 

[DllImport]

Take a look at http://pinvoke.net/ - that should get you going! Good luck.

danbystrom
+1  A: 

P/Invoke is your friend here, assuming you mean a true "raw" DLL, and not a COM object implemented in C.

WaldenL
A: 

If it's a DLL, you can use P/Invoke to make function calls to it.

R. Bemrose