   convert from std::string or std::stringstream to--->char []????
  Hi i want to use std::string etc, but the functions i am using require stuff like char *, char [] , char[10] type things.So Im wondering how would I convert from either std::stringstream or std::string to one of the char string types. Thankyou. 
  std::string has a c_str() member, this will be a CONST char* though. ;  the function wont use const strings, whats the difference any how? ;  const means you can''t change the value of the string. Did you write the functions? If so, change them to be const as well and it will all be good. Otherwise, do you know if they change the string? If they do, create your own temporary buffer and copy the std::string to it, then pass the buffer (a pain, I know). If not, you can just cast the return value to char *, but that''s probably not recommendable in production code. ;  im using LPSTR and copying the std::string to it with strcpy.and all this is behind the scenes, so the user just uses string in the function.Ive been using java alot at college, and i just love how thought out the code is, so im trying to make my wrapper like so ;  oh cool, the drawtext function uses const aswell 