Click to See Complete Forum and Search --> : CString


Chin Yu
March 30th, 1999, 08:51 AM
Hello! Gurus

I am developing a class using CString as the main class in my class. I am facing a peculiar problem. When I add two CStrings(for example CString x,y and

I type x += y or x = x+y; It is not adding CString y to x.But if I say x = y + x, the thing works. Is there anyone who can help on this.


Thanks

-Chin Yu

Once and Future Consultant
March 30th, 1999, 09:46 AM
Might be easier if you actually showed 5 or 6 lines of code that actually display this

problem.

chris
March 30th, 1999, 04:58 PM
If you have anykind of backslash \ then those adding features don't work. If there is a \ then make it a \\ and it should work.

Chris
March 30th, 1999, 04:58 PM
If you have anykind of backslash \ then those adding features don't work. If there is a \ then make it a \\ and it should work.

Ran
April 1st, 1999, 08:03 AM
I also got the same 'problem'. I guess it maybe a bug in VC 5.0, thats what I use and you are too probably.


It will be interesting to know why a =+ b isn't work exactly the same way as a = a + b.