Thread View: comp.os.ms-windows.programmer.tools.owl
3 messages
3 total messages
Started by "2 Wise"-King
Wed, 27 Sep 1995 09:34
Need help creating simple clock prgm in windows.
Author: "2 Wise"-King
Date: Wed, 27 Sep 1995 09:34
Date: Wed, 27 Sep 1995 09:34
15 lines
1104 bytes
1104 bytes
I need to write a windows program that will display time. I have thought about the problem, I don't think I should be using time, or clock or biostime since I'll be polling the CPU all the time. I think what I need is the windows to automatically acknowledge the program after every 1 minute so the program can increment the time only after 1 min, instead of keeps checking the time every clock tick. And I don't still don't know a lot about windows progamming. So, your reply is greatly appreciated. Don't need to write the program for me, just tell me what class/function I should be aware of that provide such routine. Once again, thanx.
Re: Need help creating simple clock prgm in windows.
Author: drf
Date: Thu, 28 Sep 1995 05:43
Date: Thu, 28 Sep 1995 05:43
26 lines
1491 bytes
1491 bytes
In article <44b5s2$132@news.csus.edu>, wleong@sfsu.edu ("2 Wise"-King) wrote:
>
>I need to write a windows program that will display time. I have thought
>about the problem, I don't think I should be using time, or clock or
>biostime since I'll be polling the CPU all the time.
>
>I think what I need is the windows to automatically acknowledge the
>program after every 1 minute so the program can increment the time
>only after 1 min, instead of keeps checking the time every clock tick.
>
>And I don't still don't know a lot about windows progamming. So, your
>reply is greatly appreciated. Don't need to write the program for me,
>just tell me what class/function I should be aware of that provide
>such routine.
>
>Once again, thanx.
>
wleong:
Hey.. thats easy.. just set up a timer call back to kick you over
every minute. Check into the TWindow:SetTimer function.. and
follow the links. (I am assumin you are using OWL of course :)
Never give up!
David Foringer
dveous@primenet.com
dforinge@space.honeywell.com
Re: Need help creating simple clock prgm in windows.
Author: Mario Zimmermann
Date: Thu, 28 Sep 1995 06:57
Date: Thu, 28 Sep 1995 06:57
17 lines
1252 bytes
1252 bytes
wleong@sfsu.edu ("2 Wise"-King) wrote:
>
>I need to write a windows program that will display time. I have thought
>about the problem, I don't think I should be using time, or clock or
>biostime since I'll be polling the CPU all the time.
Read the documentation about the windows timer functions.
You can setup a timer which calls your program every minute.
-----
Mario
--
# # ## # # LION Gesellschaft fuer Systementwicklung mbH
# # # # ## # Mario Zimmermann email: zimmerma@lion.de
# # # # # ## Universitaetsstr. 140 Phone: +49 9709-315
#### # ## # # D-44799 Bochum Fax: +49 9709-111
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads