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^ problem

String^ problem

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

    Hello, I am confused about the type of vc++ .NET. I want to use the string typed in the Textbox. The property "Text" of Textbox has the type "string^". I want to change it to char*. I use the TextBox->Text->ToCharArray, but it is not char* type. It is wchar_t type. How could I convert the string^ type to char*? Appreciate your reply. Thank you. Jane

    H 1 Reply Last reply
    0
    • M minihotto

      Hello, I am confused about the type of vc++ .NET. I want to use the string typed in the Textbox. The property "Text" of Textbox has the type "string^". I want to change it to char*. I use the TextBox->Text->ToCharArray, but it is not char* type. It is wchar_t type. How could I convert the string^ type to char*? Appreciate your reply. Thank you. Jane

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      You asked on the wrong forum it was better you asked (Managed) C++/CLI[^].

      M T 2 Replies Last reply
      0
      • H Hamid Taebi

        You asked on the wrong forum it was better you asked (Managed) C++/CLI[^].

        M Offline
        M Offline
        minihotto
        wrote on last edited by
        #3

        OK. Thanks.

        1 Reply Last reply
        0
        • H Hamid Taebi

          You asked on the wrong forum it was better you asked (Managed) C++/CLI[^].

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Hamid. wrote:

          You asked on the wrong forum it was better you asked (Managed) C++/CLI[^].

          i just going to do same.. you beat me this time!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

          H 1 Reply Last reply
          0
          • T ThatsAlok

            Hamid. wrote:

            You asked on the wrong forum it was better you asked (Managed) C++/CLI[^].

            i just going to do same.. you beat me this time!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            Do you want to learning C++.Net?

            T 1 Reply Last reply
            0
            • H Hamid Taebi

              Do you want to learning C++.Net?

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              Hamid. wrote:

              Do you want to learning C++.Net

              yea want to.. any online tutor

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
              Never mind - my own stupidity is the source of every "problem" - Mixture

              cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

              H 1 Reply Last reply
              0
              • T ThatsAlok

                Hamid. wrote:

                Do you want to learning C++.Net

                yea want to.. any online tutor

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                Never mind - my own stupidity is the source of every "problem" - Mixture

                cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                If you remember we have a member on the codeproject Mr Nishant Sivakumar it has a good site see C++/CLI [^] for start.;)

                T M 2 Replies Last reply
                0
                • H Hamid Taebi

                  If you remember we have a member on the codeproject Mr Nishant Sivakumar it has a good site see C++/CLI [^] for start.;)

                  T Offline
                  T Offline
                  ThatsAlok
                  wrote on last edited by
                  #8

                  Hamid. wrote:

                  If you remember we have a member on the codeproject Mr Nishant Sivakumar it has a good site see C++/CLI [^] for start.

                  :-D

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                  Never mind - my own stupidity is the source of every "problem" - Mixture

                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                  1 Reply Last reply
                  0
                  • H Hamid Taebi

                    If you remember we have a member on the codeproject Mr Nishant Sivakumar it has a good site see C++/CLI [^] for start.;)

                    M Offline
                    M Offline
                    minihotto
                    wrote on last edited by
                    #9

                    Thx:)

                    H 1 Reply Last reply
                    0
                    • M minihotto

                      Thx:)

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #10

                      You're welcome.;)

                      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