Using "C" dll in C#

c# c dll
18,556

Solution 1

You can use PInvoke

Platform Invocation Services (PInvoke) allows managed code to call unmanaged functions that are implemented in a DLL.

Here is a great tutorial by the NAG (Numerical Algorithms Group) group

Solution 2

You can do a DllImport in your C# code and then use PInvoke.

For your custom dll you can try this example answer on SO.

This a good website for reference for using windows dlls

Share:
18,556
nightWatcher
Author by

nightWatcher

Started My Career as a Software Developer

Updated on June 28, 2022

Comments