|
-
Sep 26th, 2002, 02:47 AM
#1
Thread Starter
Member
is there Timer in VC++??
hello.
may i know is there a Timer control in VC++ and how to use that??
can provide me some code samples also? hehe..
thanks..
-
Sep 26th, 2002, 03:13 AM
#2
-
Sep 26th, 2002, 04:12 AM
#3
Thread Starter
Member
ok.. thanks.
i'll try that out .
so doesn't VC++ have something like a Timer Control, ?
like in Borland C builder..
thank you..
-
Sep 26th, 2002, 06:46 AM
#4
Monday Morning Lunatic
Do you actually *know* C++?
I wouldn't recommend starting with MFC.
C++ is *not* a RAD language, like VB or C++ Builder.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 26th, 2002, 09:52 PM
#5
Thread Starter
Member
ok.. fine..
thanks 4 ur advice..
-
Sep 27th, 2002, 07:43 PM
#6
Hyperactive Member
lol, why would you want to use a control? ... Just use SetTimer, and you can create a callback function. ... Works pretty much like the Timer control in VB, but better.
-
Sep 28th, 2002, 07:42 AM
#7
Actually all the VB timer control does is calling SetTimer...
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 28th, 2002, 07:47 AM
#8
Monday Morning Lunatic
You're better off using timeSetEvent, it's far more reliable.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 28th, 2002, 08:36 AM
#9
transcendental analytic
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 28th, 2002, 08:39 AM
#10
Monday Morning Lunatic
The multimedia timers. Far more stable, and accurate to 1ms.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 28th, 2002, 08:42 AM
#11
transcendental analytic
I have a vague memory of using them in VB at sometime, and that they used to crash the IDE :S
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 28th, 2002, 08:50 AM
#12
Monday Morning Lunatic
It's not difficult to crash VB. If you have pointers to things they get juggled around and then the callbacks don't work.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 28th, 2002, 08:53 AM
#13
transcendental analytic
hmm.. I dont care about VB anyway, so doesnt matter, probably going to be useful.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 28th, 2002, 03:32 PM
#14
But if accuracy or reliability is not needed (such as for an autosave, it doesn't need to come exactly to the millisecond), SetTimer is better because it's easier to use and doesn't require an answering thread. And timeSetEvent lays several restrictions on the user.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|