TCHAR is an alias for either char or wchar_t, depending on whether you are compiling an ansi or unicode build. It is not a class.
The easiest is to convert it to a string and do the replace. Why reinvent the wheel?
String classes are generally highly optimized and very efficient, so don't worry about using a few extra CPU cycles, you will most likely never notice unless going a very large number (like hundreds of thousands) at once.
Main Topics
Browse All Topics





by: jkrPosted on 2009-02-26 at 12:24:01ID: 23749248
You could use
Select allOpen in new window