Convert integer to string for display in a label

I'm trying to teach myself Visual C++ and I cannot seem to figure out how to do this (simple) task.  I am trying to read a file and update a label on my form to show how many lines have been read.  What I cannot seem to get is how to convert the counter into a string so that I can use it as the Text for the label.

bascially, i have:

int intLines;
String * strTotal;

<...code to read the file and update the counter...>

strTotal=toString(intLines);  //obviously this doesn't work


If the answer requires any other includes, can you please specify those too?

Thanks for any help!!!

Who is Participating?
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
Try with:

strTotal = Convert::ToString(intLines);
DozaAuthor Commented:
Perfect.  I knew it wasn't as hard as some of the solutions I found on Google.  Thanks!!!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.