   std::string
  im using the std::string class, in like xstring.h or something and im wondering how to convert a string to a char *.  Alot of functions need char*s to be passed to them and i need somehow to convert the string to that.  Specifically im using the fopen function but i will later need to display std strings in message boxes and things like that.  Thanks already :-)   
  Hey bud,std::string myString;char* pString = myString.c_str();Hope that helps,Dave   ;Quote:Original post by DaveHey bud,std::string myString;const char* pString = myString.c_str(); [wink]Hope that helps,Davec_str() returns a const pointer to a null-terminated array of characters [wink].   ;  lol ty   ;Quote:Original post by guillermoroSpecifically im using the fopen function...Why are you using fopen and not a std::ifstream (although you'll still need to call c_str() for a std::ifstream because inexplicably it's constructor doesn't accept a std::string)?Σnigma   