Thread
:
char *
View Single Post
Feb 23rd, 2006, 10:53 PM
#
3
Kaja Fumei
Hobbyist Programmer
Join Date: Oct 2005
Posts: 134
Rep Power:
3
You can use the c_str() method in the string type to return the string as a char*:
(
Toggle Plain Text
)
printf( "chMsg: %s \n", strMsg.c_str());
printf( "chMsg: %s \n", strMsg.c_str());
Kaja Fumei
View Public Profile
Visit Kaja Fumei's homepage!
Find More Posts by Kaja Fumei