Microsoft
Software
Hardware
Network
Question : How do I print to a CString?
I have a vector of integers defined by vector <int> vIntegers.
Values were put into the vector using the .push_back method.
How do I get the integers from the vector to a CString such that the CString would look something like:
12, 31, 42, 53, 64
notice that the integers are separated by commas, and I would like to use the FIFO method such that the value first pushed into the vector is the first value to appear in the CString....
Answer : How do I print to a CString?
It's a bit easier using 'CString::AppendFormat', i.e.:
CString result;
for (int i = 0; i < v.size(); ++i)
{
result.AppendFormat("%d, ", v[i]);
}
ZOPPO
Random Solutions
Upgrading Forest to 2008 R2 and Exchange 2010
How to manually map vmnet0 (bridge) to a specific physical adapter with VMware Player?
Logshipping is failing when SQL Server 2008 cluster is failed over
How to send form results in Dreamweaver Php to more than one address
Cannot install ISA 2006, get error “A Connection to the specified Configuration Storage Server"
csv row limit
does BEGIN TRAN put a lock?
TOC guide
Mirron Windows XP drives
Will the new iTunes allow my old songs bought in the iTunes Music Store onto a new iPhone, iPad, iPod, etc.?