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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CString problem

CString problem

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
10 Posts 6 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 CString, for example: CString m="TSET"; but i need the invert (turn around) from this CString: CString n="TEST"; how can i do this? thank you very much. sunny

    RaviBeeR C F L 4 Replies Last reply
    0
    • S Sunnygirl

      hello @all, i have a CString, for example: CString m="TSET"; but i need the invert (turn around) from this CString: CString n="TEST"; how can i do this? thank you very much. sunny

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      n = m; n.MakeReverse(); /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

      S 1 Reply Last reply
      0
      • S Sunnygirl

        hello @all, i have a CString, for example: CString m="TSET"; but i need the invert (turn around) from this CString: CString n="TEST"; how can i do this? thank you very much. sunny

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        did you try CString::MakeReverse ?? CheeseWeasle

        S 1 Reply Last reply
        0
        • RaviBeeR RaviBee

          n = m; n.MakeReverse(); /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

          S Offline
          S Offline
          Sunnygirl
          wrote on last edited by
          #4

          thanks for reply. it works great!!!! THANKS!!!! sunny

          1 Reply Last reply
          0
          • C Chris Losinger

            did you try CString::MakeReverse ?? CheeseWeasle

            S Offline
            S Offline
            Sunnygirl
            wrote on last edited by
            #5

            thanks for reply. it works great!!!! THANKS!!!! sunny

            1 Reply Last reply
            0
            • S Sunnygirl

              hello @all, i have a CString, for example: CString m="TSET"; but i need the invert (turn around) from this CString: CString n="TEST"; how can i do this? thank you very much. sunny

              F Offline
              F Offline
              FlyingDancer
              wrote on last edited by
              #6

              Can I convert a CString varible to (char *) type? For example: void fun(char * str) { .... } CString str; fun(????str) What should be added to before "str"?

              F M 2 Replies Last reply
              0
              • F FlyingDancer

                Can I convert a CString varible to (char *) type? For example: void fun(char * str) { .... } CString str; fun(????str) What should be added to before "str"?

                F Offline
                F Offline
                FlyingDancer
                wrote on last edited by
                #7

                Use "sprintf"?

                1 Reply Last reply
                0
                • F FlyingDancer

                  Can I convert a CString varible to (char *) type? For example: void fun(char * str) { .... } CString str; fun(????str) What should be added to before "str"?

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

                  See the FAQ: 7.3 How do I convert a CString to a char*?[^] --Mike-- "So where does that leave us? Well, it leaves us right back where we started, only more confused than before." -- Matt Gullett Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber

                  F 1 Reply Last reply
                  0
                  • S Sunnygirl

                    hello @all, i have a CString, for example: CString m="TSET"; but i need the invert (turn around) from this CString: CString n="TEST"; how can i do this? thank you very much. sunny

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    When trying to find out this kind of thing, go to the help index and look at the class members. This provides a list of functions available for the class, saves a lot of time and you learn quite a bit in the process. Elaine :rose: The tigress is here :-D

                    1 Reply Last reply
                    0
                    • M Michael Dunn

                      See the FAQ: 7.3 How do I convert a CString to a char*?[^] --Mike-- "So where does that leave us? Well, it leaves us right back where we started, only more confused than before." -- Matt Gullett Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber

                      F Offline
                      F Offline
                      FlyingDancer
                      wrote on last edited by
                      #10

                      Thank you!:rose:

                      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