Good Resources

http://www.andymcm.com/csharpfaq.htm

Converting Sample Code

You often find code samples in VS C# that are not also shown in VS C++.  Usually it’s really easy to convert them to C++, using Intellisense to confirm when your right.

Bacsically a ‘.’ in C# will usually be ‘->’ or ‘::’ in C++.  It’s that simple a lot of the time, so


//In C#
chart1.Series["LightBlue"].ChartType = SeriesChartType.StackedArea100;

//Converted to C++
chart1->Series["LightBlue"]->ChartType = SeriesChartType::StackedArea100;

Assuming there are no errors preceeding the bit you are working on you know when you have it right as VS Intellisense will bring up the options that follow one of which will match what’s there already.

Other than that make sure you add the ‘^’ character before the name and change ‘new’ to ‘gcnew’ when objects are created (basically anywhere ‘new’ is used).

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.