CString or string
-
what's the difference between CString and string? which one will be better and easier to use? so far i'm always sticking to string, as i learnt it that way. someone please enlighten me the advantages of CString over string.
-
what's the difference between CString and string? which one will be better and easier to use? so far i'm always sticking to string, as i learnt it that way. someone please enlighten me the advantages of CString over string.
CString is Microsoft's string class. It has an easier syntax to the methods that it exposes. I use string by default, and CString if I have to. I'm far more likely to use bstr_t ( converts between wide and narrow strings for you ) than CString. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
-
what's the difference between CString and string? which one will be better and easier to use? so far i'm always sticking to string, as i learnt it that way. someone please enlighten me the advantages of CString over string.
string was not thread safe until VS.NET I had to learn that the hard way. I believ with VS.NET when you copy one sring object to another it actually copies the entire contents of the string which can be a issue if you desire high performance. CString doesnot have the same problem. The CString with VS.NET is very impressive and very good. I recommend using it.
-
string was not thread safe until VS.NET I had to learn that the hard way. I believ with VS.NET when you copy one sring object to another it actually copies the entire contents of the string which can be a issue if you desire high performance. CString doesnot have the same problem. The CString with VS.NET is very impressive and very good. I recommend using it.
CStrings have thread affinity, which can be another reason to not use it.
suhredayan
There is no spoon.