Re: Is delphi a good introduction to programming?
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sat, 14 May 2005 09:28:57 +0000 (UTC)
On Sat, 14 May 2005 13:18:46 +1200, Nicholas Sherlock
<n_sherlock@xxxxxxxxxxx> wrote:
>J French wrote:
>> I wonder whether there is a way of getting a higher resolution message
>> pump
>
>You could probably use multimedia timers. No messages are sent, but you
>could easily write a callback which sets a "Continue" flag for your
>loop. From the windows SDK:
>
>"About Multimedia Timers
>Multimedia timer services allow applications to schedule timer events
>with the greatest resolution (or accuracy) possible for the hardware
>platform. These multimedia timer services allow you to schedule timer
>events at a higher resolution than other timer services.
>These timer services are useful for applications that demand
>high-resolution timing. For example, a MIDI sequencer requires a
>high-resolution timer because it must maintain the pace of MIDI events
>within a resolution of 1 millisecond.
>Applications that do not use high-resolution timing should use the
>SetTimer function instead of multimedia timer services. The timer
>services provided by SetTimer post WM_TIMER messages to a message queue,
>while the multimedia timer services call a callback function.
>Applications that want a waitable timer should use the
>CreateWaitableTimer function. "
Ain't the SDK grand
<quote>
The timer services provided by SetTimer post WM_TIMER messages to a
message queue,
</quote>
Er... no, SetTimer gives you both options
- no HWND and give a lpTimerFunc then it uses Callback
Comical how misleading the documentation can be.
I think I remember that the multimedia timer hops in on a different
thread
An MSDN search on timeSetEvent is interesting
.
- References:
- Is delphi a good introduction to programming?
- From: casioculture
- Re: Is delphi a good introduction to programming?
- From: fphsml
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: alanglloyd@xxxxxxx
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: Alf Christophersen
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: Bruce Roberts
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: Maarten Wiltink
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: Maarten Wiltink
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: J French
- Re: Is delphi a good introduction to programming?
- From: Martin Harvey
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: J French
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: J French
- Re: Is delphi a good introduction to programming?
- From: Paul Dunn
- Re: Is delphi a good introduction to programming?
- From: J French
- Re: Is delphi a good introduction to programming?
- From: Nicholas Sherlock
- Is delphi a good introduction to programming?
- Prev by Date: Re: Reading from multiple serial ports in Delphi 7
- Next by Date: Re: Is delphi a good introduction to programming?
- Previous by thread: Re: Is delphi a good introduction to programming?
- Next by thread: Re: Is delphi a good introduction to programming?
- Index(es):
Relevant Pages
|
Loading