   std :: string and allegro.
  i am having problems using the string class in allegro for text output.i am using c++ and allegro and Dev-C++i have included#include <string>using namespace std;but when i need to use string str = "blah blah blah";textprintf(buffer, font, 0, 0, makecol(255,0,0), "%s", str);it doesnt work. is there a way to get the strings to work with this function.   
  textprintf probably takes a const char * for the argument that is a string.Try: textprintf(buffer, font, 0, 0, makecol(255,0,0), "%s", str.c_str() );;Quote:Original post by rip-offtextprintf probably takes a const char * for the argument that is a string.Try: textprintf(buffer, font, 0, 0, makecol(255,0,0), "%s", str.c_str() );Use std::string::c_str().  That converts from std::string to const char*, which is what is used in C (and what thus allegro uses).   ;  thanks a ton guys ... ill give it a try i appreciate the help   