CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    10

    Question about CString

    Are there anything similar to Strcat in VC that works with CString?
    And how do I use it?


  2. #2

    Re: Question about CString

    Like this:

    CString s1("MFC");
    CString s2("is");
    CString s3("fun!");
    CString s4(s1 + " " + s2);
    s4 += " " + s3; // The "+=" operator mimics strcat.


    HTH. (You might want to peruse the CString class members in the help.)


    LA Leonard - http://www.DefinitiveSolutions.com

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