I have a two CString var with using MFC.
CString a = "abc";
CString b = "def";
And int c = 5;
I want to display "abc05def".
However, this code blow doesn't work.
a.Format("%s%02d%s", a, b, c)
a.Format("%s%02d%s", a.GetBuffer(0), b.GetBuffer(0), c)
Anyone know how??
I forgot to cast (LPCTSTR). : P