Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CString

CString

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    locoone
    wrote on last edited by
    #1

    how do i take 2 CStrings and join them to be 1? im a noobie so i have no clue and cant find anything to read about it

    S T 2 Replies Last reply
    0
    • L locoone

      how do i take 2 CStrings and join them to be 1? im a noobie so i have no clue and cant find anything to read about it

      S Offline
      S Offline
      simon wan
      wrote on last edited by
      #2

      Example The following example demonstrates the use of CString::operator +. // example for CString::operator + CString s1( "abc" ); CString s2( "def" ); ASSERT( (s1 + s2 ) == "abcdef" ); CString s3; s3 = CString( "abc" ) + "def" ; // Correct s3 = "abc" + "def"; // Wrong! The first argument must be a CString.

      1 Reply Last reply
      0
      • L locoone

        how do i take 2 CStrings and join them to be 1? im a noobie so i have no clue and cant find anything to read about it

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Take a look at this Article, you will find it intresting http://www.codeproject.com/string/cstringmgmt.asp[^]

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups