Search code examples
c#asp.netc++dllunmanaged

How do I call unmanaged C/C++ code from a C# ASP.NET webpage


I have an ASP.NET website that uses C# and I'd like to call functions from an unmanaged C/C++ DLL. How do I do it?


Solution

  • Check out P/Invoke.

    Calling Win32 DLLs in C# with P/Invoke

    If it's a COM dll, then you can use COM Interop