Click to See Complete Forum and Search --> : Simple question on window programming


Wfranc
December 30th, 2002, 12:26 AM
:D I always "smile" like this .
I have got to tell you that I am a beginer in programing.
I would like to ouput a window (using C++) and in that window I will ouput a string but each character must wait 100 milisecs before being shown up on the blanc window. Would you please be kind enough to give me some instructions about this ?
I really very much appreciate any of your help !!!! Please !!!

Thanks alot.
:( :( :(

mostneed
December 31st, 2002, 02:36 PM
First I'll set up a timer, as your demand for 100 milisecs, then get the character (once one maybe) from a CString or some other type of variable in the process of timer event and display it onto the screen in the window you created.

You should use the function TextOut(x, y, char ch), before this you've to get the DC handle via GetDC() function.

Maybe this can give you a hand.

Happy new year!

farhad_smx
January 1st, 2003, 01:16 AM
hi,
also you can put the string , character by character and use ::Sleep( 100 ) between them !

Wfranc
January 1st, 2003, 12:35 PM
:D I always 'smile' like this in my posts

Thank you....You two really nice guys!!!!!
farhad_smx!!!!You have a really nice nose !!! :D
Happy new year guys !!!!!!:D :D :D Happy new year guys