appending some letters to the end of a CString variable.

This is a discussion on appending some letters to the end of a CString variable. within the C++ Programming forums, part of the General Programming Boards category; I am looking for some way i can add some letters to the end of a CString variable, im new ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    411

    appending some letters to the end of a CString variable.

    I am looking for some way i can add some letters to the end of a CString variable, im new to MFC and am learning.

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    If you mean append then you can use operator+= -

    CString a = "some char's";
    a += "some more";
    zen

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    Thatnks alot man, wow that was easy.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Inserting a swf file in a windows application
    By face_master in forum Windows Programming
    Replies: 12
    Last Post: 05-03-2009, 11:29 AM
  3. Use of variable
    By alice in forum C Programming
    Replies: 8
    Last Post: 06-05-2004, 07:32 AM
  4. Next Question...
    By Azmeos in forum C++ Programming
    Replies: 3
    Last Post: 06-06-2003, 02:40 PM
  5. appending a string onto end of another string
    By sballew in forum C Programming
    Replies: 10
    Last Post: 12-11-2001, 09:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21