What is the best way to convert between char* and System::String in C++/CLI

前端 未结 5 605
情深已故
情深已故 2020-11-29 01:07

What is the approved way to convert from char* to System::string and back in C++/CLI? I found a few references to marshal_to<> templated functions on Google, but it appea

5条回答
  •  一整个雨季
    2020-11-29 01:32

    One additional link to a summary of possible ways:

    http://support.microsoft.com/?kbid=311259

提交回复
热议问题