Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / printf_s and darkgdk

Author
Message
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 20th Apr 2009 22:11 Edited at: 20th Apr 2009 22:18
since the printf_s function don't do anything with darkgdk i wonder wich printf function should i use to work and see the results on the screen can anyone help?
and also suggestions on scanf_s also don't work
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 20th Apr 2009 22:18 Edited at: 20th Apr 2009 22:19
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 20th Apr 2009 22:41 Edited at: 20th Apr 2009 22:43
You can use sprintf or sprintf_s, which both work like printf and printf_s, but write the data to a char* instead of outputting the string in the command prompt.

example:


So then you could just write the string to the screen using dbText()


#ifdef _DEBUG
FixBugs(All);
#endif
american eagle
17
Years of Service
User Offline
Joined: 2nd Aug 2007
Location:
Posted: 20th Apr 2009 23:41
yeah that i did know thx i was hoping to fine some printf function that print right to the screen without using dbText
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 21st Apr 2009 11:31
It won't print to the screen because it's designed to output to a console.

Login to post a reply

Server time is: 2024-11-25 13:40:45
Your offset time is: 2024-11-25 13:40:45