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. Split a string in MFC

Split a string in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
6 Posts 4 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.
  • U Offline
    U Offline
    User 4396598
    wrote on last edited by
    #1

    Hi, How to split a String(CString obj) in MFC based on some tokens like spaces. is there any method for this? Thanks in advance. Regards, srinu

    hi

    N J R 3 Replies Last reply
    0
    • U User 4396598

      Hi, How to split a String(CString obj) in MFC based on some tokens like spaces. is there any method for this? Thanks in advance. Regards, srinu

      hi

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Yes, you can use Find, ReverseFind, Left, Middle, Right and other methodes... Just search a bit and choose what you want. Here[^] you have the msdn members list.

      Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

      U 1 Reply Last reply
      0
      • U User 4396598

        Hi, How to split a String(CString obj) in MFC based on some tokens like spaces. is there any method for this? Thanks in advance. Regards, srinu

        hi

        J Offline
        J Offline
        Jijo Raj
        wrote on last edited by
        #3

        Hi, You can use CStringT::Tokenize()[^]. Best Regards, Jijo.

        _____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

        1 Reply Last reply
        0
        • N Nelek

          Yes, you can use Find, ReverseFind, Left, Middle, Right and other methodes... Just search a bit and choose what you want. Here[^] you have the msdn members list.

          Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

          U Offline
          U Offline
          User 4396598
          wrote on last edited by
          #4

          thanks dude :)

          hi

          N 1 Reply Last reply
          0
          • U User 4396598

            thanks dude :)

            hi

            N Offline
            N Offline
            Nelek
            wrote on last edited by
            #5

            You are welcome :)

            Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

            1 Reply Last reply
            0
            • U User 4396598

              Hi, How to split a String(CString obj) in MFC based on some tokens like spaces. is there any method for this? Thanks in advance. Regards, srinu

              hi

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              There's also AfxExtractSubString()[^]

              “Follow your bliss.” – Joseph Campbell

              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