Thread: char *
View Single Post
Old Feb 23rd, 2006, 10:53 PM   #3
Kaja Fumei
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 134
Rep Power: 3 Kaja Fumei is on a distinguished road
You can use the c_str() method in the string type to return the string as a char*:
printf( "chMsg: %s \n", strMsg.c_str());
Kaja Fumei is offline   Reply With Quote