Question : How do I convert an integer to a CString?

I have an integer nNumber.  How do I convert it to a CString csNumbers?

Ultimately, what I want to do is convert a bunch of incoming integers from a for/next loop into 1 long CString...

would csNumbers += (CString) nNumber  work?

Answer : How do I convert an integer to a CString?

There are better ways (such as using stringstream) but a quick and dirty way as follows....
1:
2:
3:
4:
5:
6:
7:
8:
9:
CString outer;

for(int i = 0 ; i < 10 ; ++i)
{
   CString s;
   s.Format("%d", i);

   outer += s;
}
Random Solutions  
 
programming4us programming4us