How to use char[] or char* strings with ListBox ... Add()

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How can I easily use char strings to display text in listbox. I need to do
something like:

char MyText[] = "The text";

MyListBox->Items->Add(MyText);

Thanks,

Hugo
 
Hugo,
How can I easily use char strings to display text in listbox. I need to do
something like:

char MyText[] = "The text";

MyListBox->Items->Add(MyText);

Are you talking about Managed C++?

If so, just doing MyListBox->Items->Add(new String(MyText)); should be
enough...
 
Back
Top