{"id":361,"date":"2010-07-23T10:31:52","date_gmt":"2010-07-23T10:31:52","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=361"},"modified":"2022-02-17T06:24:05","modified_gmt":"2022-02-17T06:24:05","slug":"differences-to-c","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/c-sharp-differences\/differences-to-c","title":{"rendered":"Differences To C#"},"content":{"rendered":"<h4>Good Resources<\/h4>\n<p><a href=\"http:\/\/www.andymcm.com\/csharpfaq.htm\" target=\"_blank\" rel=\"noopener\"> http:\/\/www.andymcm.com\/csharpfaq.htm<\/a><\/p>\n<h4>Converting Sample Code<\/h4>\n<p>You often find code samples in VS C# that are not also shown in VS C++. \u00a0Usually it&#8217;s really easy to convert them to C++, using Intellisense to confirm when your right.<\/p>\n<p>Bacsically a &#8216;.&#8217; in C# will usually be &#8216;-&gt;&#8217; or &#8216;::&#8217; in C++. \u00a0It&#8217;s that simple a lot of the time, so<\/p>\n<pre><code>\r\n\/\/In C#\r\nchart1.Series[\"LightBlue\"].ChartType = SeriesChartType.StackedArea100;\r\n\r\n\/\/Converted to C++\r\nchart1-&gt;Series[\"LightBlue\"]-&gt;ChartType = SeriesChartType::StackedArea100;\r\n<\/code><\/pre>\n<p>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&#8217;s there already.<\/p>\n<p>Other than that make sure you add the &#8216;^&#8217; character before the name and change &#8216;new&#8217; to &#8216;gcnew&#8217; when objects are created (basically anywhere &#8216;new&#8217; is used).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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++. \u00a0Usually it&#8217;s really easy to convert them to C++, using Intellisense to confirm when your right. Bacsically a &#8216;.&#8217; in C# will usually be &#8216;-&gt;&#8217; or &#8216;::&#8217; in C++. \u00a0It&#8217;s that simple a [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-361","post","type-post","status-publish","format-standard","hentry","category-c-sharp-differences"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=361"}],"version-history":[{"count":8,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/361\/revisions"}],"predecessor-version":[{"id":1628,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/361\/revisions\/1628"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}