CString performance
-
i use CString to much i think, i've seen many people uses LPCSTR am i losing much by using CString?
I don't think there's a huge performance loss when using CString; internally, it must be similar to using LPCSTR ( char* )é For day to day operation, just the simpler usage of CString ( or std::string ) makes it up for the programmer at least.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
i use CString to much i think, i've seen many people uses LPCSTR am i losing much by using CString?
it depends on how you use it! :) CString is realy OK, the only thing you should do is, if you pass a CString as a parameter, pass it as const CString& and dont an a lot of small datachungs to a CString in a loop
int n=0;
CString dummy;
while(n<10000) {
dummy+=(char)((n%30)+30);
++n;
}