tags:

views:

150

answers:

1

Hello, i have a library written in C++, how can i create bindings to C# so i can expose the functionality of that library to C#? And i don`t mean "port" (using SWIG possibly). I mean that when calling some functions in C#, pure C++ code is executed so it is fast. I've searched around in google but i couldn't find anything o_O

Thanks in advance :-)

p.s.: please take into notice, that i'm a bit noob in C#

+2  A: 

Try looking here to see if this helps. You can call unmanaged code from C#. It's not terribly difficult but you need to keep in mind you're working unmanaged. Coming from a C++ background this shouldn't be too tough to keep in mind.

http://msdn.microsoft.com/en-us/magazine/cc301501.aspx

Nick