Bakkes / Karo

Karo engine in c++ with XNA frontend
GNU General Public License v2.0
1 stars 0 forks source link

Research how to use native DLL's in a managed C# environment #14

Closed jkemperman closed 10 years ago

jkemperman commented 10 years ago

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.