Calling C code from managed code
问题 I currently have a C function that I'd like to use in .NET (C#). I can see two ways of achieving this: Compiling it (I think this is possible) with /clr on VC++.NET, having implemented "façade" managed methods that call the C code. Compiling the C code as a DLL and then making API calls. What do you find best? How to do the first of them? Update As requested, here is the (only) function I need to call from my managed code: int new_game(double* params1, double* params2); Just one more question