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. Return between CStrings

Return between CStrings

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
4 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.
  • S Offline
    S Offline
    Sunnygirl
    wrote on last edited by
    #1

    hello @all, i have a mfc-program and two CStrings. i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return. CString one="123"; CString two="456"; CString combination="123 456"; how can i get the CString 'combination'???? :confused: thanks sunny :-D

    T T 3 Replies Last reply
    0
    • S Sunnygirl

      hello @all, i have a mfc-program and two CStrings. i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return. CString one="123"; CString two="456"; CString combination="123 456"; how can i get the CString 'combination'???? :confused: thanks sunny :-D

      T Offline
      T Offline
      Tim Smith
      wrote on last edited by
      #2

      "123\n456" will place a return between the new strings when the string is output. Tim Smith I'm going to patent thought. I have yet to see any prior art.

      1 Reply Last reply
      0
      • S Sunnygirl

        hello @all, i have a mfc-program and two CStrings. i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return. CString one="123"; CString two="456"; CString combination="123 456"; how can i get the CString 'combination'???? :confused: thanks sunny :-D

        T Offline
        T Offline
        Thomas Lau
        wrote on last edited by
        #3

        hello,u can do it as following::-D combination=one+two;

        1 Reply Last reply
        0
        • S Sunnygirl

          hello @all, i have a mfc-program and two CStrings. i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return. CString one="123"; CString two="456"; CString combination="123 456"; how can i get the CString 'combination'???? :confused: thanks sunny :-D

          T Offline
          T Offline
          Thomas Lau
          wrote on last edited by
          #4

          Hello, u can do it as this: combination=one+0X0A+0X0D+two; good luck!:-O

          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