small tip : Convert char * to LPCTSTR


for example

char str[100];
sprintf(str, "str_%d", 100);
CString A = CA2W(str);



stl vector test for pop back and pop front

STL Vector test for pop_back, pop_back_n and pop front.

I wanted to erase first element.
but there is no inner function.
pop_back, pop_back_n is that erase last element in vectors.
The last sample is the method to pop front.

refer to this sample code.

< gist >

< /gist >