Original Post
🔒 Locked
String to const char*
Advertisement
|
Hope that helps!
-----------------
The Goblin (madgob@aol.com)
-----------------
"Before critisizing somebody, walk a mile in their shoes. That way, when you do critisize them, not only will you be a mile away, but you''ll also have their shoes!"
Hi
You can write your own string class with automatic conversion
=>
CString::operator const char*(void) const
{
return( str.c_str());
};
Have fun
Bunnz
www.bunnz.com
(Bunnz: had to edit this post cos your signature was messing up the thread: missing quote at the end of the HREF - Kylotan)
Edited by - Kylotan on November 22, 2001 10:32:39 PM
You can write your own string class with automatic conversion
=>
CString::operator const char*(void) const
{
return( str.c_str());
};
Have fun
Bunnz
www.bunnz.com
(Bunnz: had to edit this post cos your signature was messing up the thread: missing quote at the end of the HREF - Kylotan)
Edited by - Kylotan on November 22, 2001 10:32:39 PM
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement