I want to create a dll from a C++ code and the use it in C#. Is there a solution of creating COM object from C++ ?
I don't want to use System.Runtime.InteropServices.
Many thanks
There are 3 ways to go about it.
1) Use PInvoke from C# to call into native methods.
2) Use C++-CLI to create a layer that exposes native functionality to C#. This is my recommended approach performance wise.
3) Write the C++ dll as a COM object and access from C#. Requires COM knowledge and hence developement cost.