Article View: borland.public.cppbuilder.nativeapi
Article #16511event loop
From: JOLA
Date: Mon, 12 May 2003 09:48
Date: Mon, 12 May 2003 09:48
23 lines
1623 bytes
1623 bytes
Hello!
I need to modify the event loop so that all the messages would be first send
to
"source" software
(which is software controlling scanner, delivered by
device developer )
to ensure that the "source" receives its messages.
If source doesn't process given message, it returns it to application to be
dispatched.
Question: would it be enough to place TApplicationEvents object in my app
and how to use it?
Or maybe it's better to put
while (GetMessage())
{
send_message_to_source()
and dispatch_it() //if it was returned by source
}
loop somewhere in the app (but where? - I need it only when the source is
enabled, which happens not so often)?
Help please!
WETA
Technical Details
Message-ID:
<3ebf6e6e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f0a2759c1f722c56,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-12 02:51:37 PST Reply-To: "JOLA" <weta@gazeta.pl> From: "JOLA" <weta@gazeta.pl> Newsgroups: borland.public.cppbuilder.nativeapi Subject: event loop Date: Mon, 12 May 2003 11:48:53 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 62.233.227.180 Message-ID: <3ebf6e6e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052733038 62.233.227.180 (12 May 2003 02:50:38 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail