I checked it out and tested something out. It all boils down to this:
Program logic in native C++
Create wrapper in C++/CLR
Use wrapper in managed C# program
You cannot directly call native C++ code from C#. You can directly call native C code from C#, but then you'd have to deal with C++'s datatypes in C# and vice versa. It's easier to just create a wrapper in a seperate C++/CLR DLL project.
I checked it out and tested something out. It all boils down to this:
You cannot directly call native C++ code from C#. You can directly call native C code from C#, but then you'd have to deal with C++'s datatypes in C# and vice versa. It's easier to just create a wrapper in a seperate C++/CLR DLL project.