String* response_Page="";
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 C2065: 'gcnew' : undeclared identifier
The error is caused by using new style managed C++ syntax with the /clr:oldSyntax compiler option. Either use old style syntax or use new style syntax and don't use the oldSyntax flag.
The only reason to use the oldSyntax flag is if you're maintaining legacy code. Other than that one reason, avoid the old syntax, it was yucky.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With