> Hi,
how do I convert std::string to char * ?
Oops.
previous reply was for managed strings.
for std::string you can just use the c_str() method.
std::string myString("Hello");
const char * ptr = myString.c_str();
remember that you are not supposed to use this pointer for changing
myString, and the pointer itself is only valid as long as myString is not
modified in any way.
--
Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"