Click here to Skip to main content
14,883,082 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

Do you know how to convert a System::String variable to a char* in c++/cli?

Thank you very much in advance.
Best regards.

Maciej Los 21-Nov-13 18:35pm
CPallini 22-Nov-13 1:51am
Thank you.
Sergey Alexandrovich Kryukov 21-Nov-13 18:37pm
Sure, a 5.
CPallini 22-Nov-13 1:51am
Thank you.
Richard C Bishop 22-Nov-13 9:54am
A proper solution, +5.
See this article, it might be what you are looking for"

click clack patty wack![^]
Maciej Los 21-Nov-13 17:51pm
Richard C Bishop 21-Nov-13 17:56pm
Thank you sir!
CPallini 21-Nov-13 18:23pm
System::string and std::string are quite different beasts.
Maciej Los 21-Nov-13 18:35pm
Oh no, i missed that! You're right, Carlo.
Richard C Bishop 22-Nov-13 9:54am
Wow, good catch. Thank you for the clarification, CPallini!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900