Reputation: 4118
I have got a native DLL that I wanted to use via COM in my .NET/C# project. I am a little confused on the steps to follow in order to use it in my C# project. Here is what I understand, please correct me wherever I am wrong.
Upvotes: 2
Views: 2613
Reputation: 42003
If it is a COM component (it has to be designed and compiled as such), you can add a COM reference using the Add Reference dialog; you will then have wrapper classes created for you.
If you are simply using a native DLL (not a COM component), you need to use DllImport
to call native methods.
Upvotes: 2