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

    Help CStrings in Debug build?

    Having a problem with CStrings in debug mode.

    Program code works fine in release mode but when tracing a debug build CStrings seem to get garbled when using members like toupper or code like:
    CString sTest;
    sTest = "Testing One";
    sTest = sTest + " Two";
    sTest now contains "YYYYYYYYYYYYYYYYYYYY" but only in debug build!

    Is it my settings ?

    Thanks.



  2. #2
    Join Date
    Aug 2000
    Location
    UK, Cambridge
    Posts
    79

    Re: Help CStrings in Debug build?

    Are you passing the CString out of a function by any chance?



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