glPrint() and strings
hmmm pretty easy question for you...
I''m using glPrint() from lesson 13 and I want to know how to print C++ style strings. I can get ints/doubles/floats fine using %i/%d/%f. Also when I use %s I can print C style strings
(char arrays) easy. When I try string variables I either get nothing or some wierd numbers. I''ve tried typecasting the string to a char * but I get some strange typecasting error.
this is what I''ve tried using.
char *(mystring)
(char *)mystring
I''ve included in my files..
Is this one of those problems where one must use a #define or typedef?
Is there a special % for STL strings?
thanks
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement