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
Exporting Sql Tabel to Excel
Are there any free chart control for 64 bit .net?
Graphics2D.clearPolygon(Po
lygon p) ?
I need help getting https 443 working on a pix firewall.
MVP's: Is there a currently accepted standard for optimizing workbook calculations?
union issue in SQL 2k
What is the fastest IDE hard drive available?
sbs2003 "windows 7" setup.exe problem
Send Outlook Contact Automatic Update
return type missing