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. Managed C++/CLI
  4. String^ problem

String^ problem

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++helpquestion
2 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
    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

    L 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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      minihotto wrote:

      I am confused

      What material did you study to learn the issues related to mixed mode development? If you just launched Visual Studio and started coding then that's why you are confused. There are articles here on Code Project[^] and on MSDN that introduce managed/native issues to developers. I strongly suggest your read them. If you have read some and are still confused you should reference the article and the section that you are confused about.

      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