visual c++ - How to convert C++/CLI array to String or standard C array -


i have managed array:

array<unsigned char>^ mygcarray; 

assume array null terminated. want display contents using console::writeline(). what's easiest way convert mygcarray string ?

one of constructors string has parameter of const char*, if can convert mygcarray that, work too. how should that?

i can copy contents of mygcarray regular unsigned char myarray[], best way?

thank you.

you have use proper encoding. if have no idea started

string^ str = system::text::encoding::default->getstring(mygcarray); 

by hans passant


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -