Article View: borland.public.cppbuilder.nativeapi
Article #6976Re: multimedia timer
From: Dominique MONTIN
Date: Wed, 30 Mar 2005 13:25
Date: Wed, 30 Mar 2005 13:25
63 lines
2846 bytes
2846 bytes
I have created a new project and copied the source code in it and it work perfectly. Thanks a lot Dominique "Dominique MONTIN" <dominique86.jacob@laposte.fr> a �crit dans le message de news:424a7b5a$1@newsgroups.borland.com... > Thanks a lot. > > Your application (project1.bpr that use MMTimer.cpp) seems to be exactly > what I want. I have downloaded it but i can't run it because > the compiler error "unable to find Webdsnap.bpi" occurs. > I have not found this file installed on my hard disk with BCB6, nor in the > files you provide. > Where can i find it or is it possible not to use it ? > Thanks > > Merci beaucoup. Il est toujours agr�able de rencontrer des francophones sur > les newsgroup !!! > > Dominique > > > > > "Michel Leunen" <nospam@noreply.please> a �crit dans le message de > news:424982c1$1@newsgroups.borland.com... > > Dominique MONTIN wrote: > > > > > I wish to use a timer that create periodic events at the frequency up to > 1 > > > kHz. I don't know if it is possible. It seems that the timer available > among > > > the component, with BCB, can just reach 18.2 Hz. > > > But I have seen that the resolution of the multimedia timer can reach 1 > ms. > > > That let me some hope. > > > Does anybody has a simple example of using the multimedia timer ? > > > > Yes. Either use QueryPerformanceFrequency() and > > QueryPerformanceCounter() (see > > http://www.leunen.com/cbuilder/perfcount.html for a sample) or use a > > multimedia counter. I have a component that uses it. It comes with the > > source so you can see how it works (TMMTimer > > http://www.leunen.com/cbuilder/comps.html) > > > > Michel > > -- > > ---------------------------------------- > > Michel Leunen > > mailto: see my homepage. > > C++Builder, BCC5.5.1 Web site: > > http://www.leunen.com/ > > ---------------------------------------- > >
Technical Details
Message-ID:
<424aa8b9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<424964e6$1@newsgroups.borland.com> <424982c1$1@newsgroups.borland.com> <424a7b5a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bc8003398f0f44ab X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Dominique MONTIN" <dominique86.jacob@laposte.fr> Newsgroups: borland.public.cppbuilder.nativeapi References: <424964e6$1@newsgroups.borland.com> <424982c1$1@newsgroups.borland.com> <424a7b5a$1@newsgroups.borland.com> Subject: Re: multimedia timer Date: Wed, 30 Mar 2005 15:25:11 +0200 Lines: 65 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 195.220.220.199 Message-ID: <424aa8b9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1112189113 195.220.220.199 (30 Mar 2005 05:25:13 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail