CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2002
    Location
    AhuhA
    Posts
    204

    Talking Simple question about windows programming

    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.
    Last edited by Wfranc; December 30th, 2002 at 01:31 AM.

  2. #2
    Join Date
    Dec 2002
    Location
    Internet
    Posts
    7
    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!

  3. #3
    Join Date
    Aug 2002
    Location
    Iran
    Posts
    17
    hi,
    also you can put the string , character by character and use ::Sleep( 100 ) between them !

  4. #4
    Join Date
    Mar 2002
    Location
    AhuhA
    Posts
    204
    I always 'smile' like this in my posts

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured