Alex Rivera | Logout

Should I use Managed C++ or C# for my application?

Asked 2010-06-30T08:54:21.303
11

If you had to decide between C# and Managed C++, which would you choose and why?

Are there benefits of Managed C++ over C#? Which language do you prefer? What decisions would you make under what circumstances?

Edit
Report

1 Answer

4

Managed C++ is good for interop with C++: for example, if you have a .NET application and your assembly has to interact with a native interface that comes as C++ .lib files (which I had more than once), or with a nice C++ API.

Example: Rithmic (not that you ever heard of them) until recently ONLY supported a C++ API. If you try to access them from C# - good luck ;) Managed C++ allows me to access their API and expose nice .NET objects.

Basically interop. Managed C++ REALLY shines in interop with low level C / C++ API's.

answered 2010-06-30T08:56:35.517

Your Answer