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. Help needed!

Help needed!

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
7 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.
  • M Offline
    M Offline
    MFC is the Best
    wrote on last edited by
    #1

    hello! my cstring looks like that: 1;2;3;.....and so on. i want to know, how i can delete the ';' inside this string. is there a possibility to reset the ';' into a blank (' ')? MFC

    C 1 Reply Last reply
    0
    • M MFC is the Best

      hello! my cstring looks like that: 1;2;3;.....and so on. i want to know, how i can delete the ';' inside this string. is there a possibility to reset the ';' into a blank (' ')? MFC

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Doesn't CString have a Replace function that does this ? <Edit> I asked because I wasn't sure. Yes, it does have a Replace method, which will do what you want. </Edit> Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

      M 1 Reply Last reply
      0
      • C Christian Graus

        Doesn't CString have a Replace function that does this ? <Edit> I asked because I wasn't sure. Yes, it does have a Replace method, which will do what you want. </Edit> Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

        M Offline
        M Offline
        MFC is the Best
        wrote on last edited by
        #3

        super, thanks. :rose: where did I have my eyes? :zzz::eek: do u know also, how can delete the ';' without a replace? MFC

        C 1 Reply Last reply
        0
        • M MFC is the Best

          super, thanks. :rose: where did I have my eyes? :zzz::eek: do u know also, how can delete the ';' without a replace? MFC

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Just replace them with an empty string. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

          M 1 Reply Last reply
          0
          • C Christian Graus

            Just replace them with an empty string. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

            M Offline
            M Offline
            MFC is the Best
            wrote on last edited by
            #5

            i tried it, with str.Replace(';', ''); but then i got an error message, because of the empty string. is there another possibility?

            C 1 Reply Last reply
            0
            • M MFC is the Best

              i tried it, with str.Replace(';', ''); but then i got an error message, because of the empty string. is there another possibility?

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              str.Remove(';'); I dunno if it works for all instances, I've just been looking up the MSDN to answer you. I don't use MFC at all anymore, not for a long time. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

              M 1 Reply Last reply
              0
              • C Christian Graus

                str.Remove(';'); I dunno if it works for all instances, I've just been looking up the MSDN to answer you. I don't use MFC at all anymore, not for a long time. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

                M Offline
                M Offline
                MFC is the Best
                wrote on last edited by
                #7

                it functions! thank you very much! :-D:-D MFC p.s.: i never find what i´m looking for in the msdn. :eek: :(

                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