{"id":4110,"date":"2014-03-30T07:46:07","date_gmt":"2014-03-30T07:46:07","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/c-cli-gcnew-undeclared-identifier-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:46:07","modified_gmt":"2014-03-30T07:46:07","slug":"c-cli-gcnew-undeclared-identifier-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/c-cli-gcnew-undeclared-identifier-collection-of-common-programming-errors\/","title":{"rendered":"C++ CLI gcnew undeclared identifier-Collection of common programming errors"},"content":{"rendered":"<pre><code>String* response_Page=\"\";\nstd::string http_Response;\n\n\/\/WinHttp Request\n\/\/http_Response append (pszOutBuffer);\n\nresponse_Page = gcnew System::String(respstring);\n<\/code><\/pre>\n<p>I am trying to create a managed C++\/CLI dll to be used in c#, new to C++, it is really complex, cant get much info just by searching.<\/p>\n<p>Update: I am using <strong>Common Language Runtime Support, Old Syntax (\/clr:oldSyntax)<\/strong><\/p>\n<p><strong>Getting error: error C2065: &#8216;gcnew&#8217; : undeclared identifier<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>String* response_Page=&#8221;&#8221;; std::string http_Response; \/\/WinHttp Request \/\/http_Response append (pszOutBuffer); response_Page = gcnew System::String(respstring); I am trying to create a managed C++\/CLI dll to be used in c#, new to C++, it is really complex, cant get much info just by searching. Update: I am using Common Language Runtime Support, Old Syntax (\/clr:oldSyntax) Getting error: error [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4110","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4110"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4110\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}