🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

glGetString

Started by
0 comments, last by Gandalf 24 years ago
Can somebody help me use this function! It return a pointer to a unsigned byte, but how can I convert it to oointer to a null-terminated string ? This doesn´t work: unsigned BYTE *test = glGetString(GL_VENDOR); MessageBox(0, (char*)test, 0, 0); Gandalf the White
Gandalf the Black
Advertisement
hi Gandalf,

you can try:
int sprintf(char *string,const *format_string,...)
ex:
sprintf(buffer,"%d",number);
//buffer will contain number

lunasol

This topic is closed to new replies.

Advertisement