Convert CString array to System::String
Posted
by Anu
on Stack Overflow
See other posts from Stack Overflow
or by Anu
Published on 2010-03-17T03:53:00Z
Indexed on
2010/03/17
4:01 UTC
Read the original article
Hit count: 432
Hi, I want to convert CString array to managed code ot send it to C#. For normal CString i did like this,
CString menu = "MENU";
String ^ msg = gcnew String(menu);
Globals1::gwtoolbar->Add(msg);
But now i want to send array of string.i dont know how to do for CString array.
When i gave like this it shows error
CString menu[10];
String[] ^ msg = gcnew String(menu);
How can i convert it?
© Stack Overflow or respective owner