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

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -