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
Best firewall for 20 users
What does \e mean in a regular expressions?
Excel 2007 Event when changing from one workbook sheet to another with in the same workbook.
Application that changes dates of files at once
.DefaultView.RowFilter to check duplicate in datatable is terribly slow
How to setup Data Trasnformation Services in SQL 2005
Access Database restrictions
SQL Server 2008 - varbinary(max) with Filestream - How / can you transfer files between databases?
Pix 506 to Draytek VPN
Slow Transfer Rates with a SATA Drive