Created
August 20, 2014 11:32
-
-
Save kuba-orlik/cd84f9e5631230833d40 to your computer and use it in GitHub Desktop.
Revisions
-
kuba-orlik created this gist
Aug 20, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ std::string returning_string(){ // ..code here std::string result=... // int length = result.length(); char* char_array = new char[length]; strcpy_s(char_array, length+1, wrapped_bstr); return char_array; }