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