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. String manipulation..

String manipulation..

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 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.
  • R Offline
    R Offline
    RobJones
    wrote on last edited by
    #1

    Dumb question.. I'm sure it's super easy but I can't figure it out for what ever reason... How can I replace all the 0x0a char's in a string with " \\line " ? Right now I am taking a char converting it into a CString and converting the string into RTF.. I'm having problems getting the 'new line' or 'line returns' put into the string. Thanks, Rob Whoever said nothing's impossible never tried slamming a revolving door!

    M 1 Reply Last reply
    0
    • R RobJones

      Dumb question.. I'm sure it's super easy but I can't figure it out for what ever reason... How can I replace all the 0x0a char's in a string with " \\line " ? Right now I am taking a char converting it into a CString and converting the string into RTF.. I'm having problems getting the 'new line' or 'line returns' put into the string. Thanks, Rob Whoever said nothing's impossible never tried slamming a revolving door!

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      str.Replace ( _T("\x0a"), _T("\\\\line") ); --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

      R 1 Reply Last reply
      0
      • M Michael Dunn

        str.Replace ( _T("\x0a"), _T("\\\\line") ); --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

        R Offline
        R Offline
        RobJones
        wrote on last edited by
        #3

        Damn I knew it would be easy.. LOL Thanks! Whoever said nothing's impossible never tried slamming a revolving door!

        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