by Presto » Mar 26, 2004 @ 3:16pm
by using printf, you're replacing everything in the character string, which is why the 1 is being replaced by 2.
I haven't tried CString myself in any of my PPC apps, but if it works, that would probably be easiest.
Otherwise, you can try concatenation (strcat) (not sure what the unicode version is).
Or, you could use a temporary character string and do your own concatenation:
_stprintf(sTemp, "%s2", m_Saisie);
_stprintf(m_Saisie, "%s", sTemp);
-John