CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: CString

  1. #1
    Join Date
    Mar 1999
    Posts
    1

    CString



    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



  2. #2
    Join Date
    Mar 1999
    Posts
    17

    Re: CString



    Might be easier if you actually showed 5 or 6 lines of code that actually display this

    problem.



  3. #3
    Join Date
    Mar 1999
    Location
    Fl, USA
    Posts
    23

    Re: CString



    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.

  4. #4
    Join Date
    Mar 1999
    Location
    Fl, USA
    Posts
    23

    Re: CString



    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.

  5. #5
    Join Date
    May 1999
    Posts
    19

    Re: CString



    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured