Article View: borland.public.cppbuilder.nativeapi
Article #287Re: Delphi threading by example article in C++ Builder 2007 format
From: Remy Lebeau (TeamB)
Date: Wed, 28 May 2008 20:11
Date: Wed, 28 May 2008 20:11
30 lines
1789 bytes
1789 bytes
"na" <na@na.com> wrote in message news:483da620$1@newsgroups.borland.com...
> In the Delphi threading by example article presented here:
> http://dn.codegear.com/article/22411
>
> I would like to implement a portion of this using C++ Builder.
> What is the correct syntax for this funtion?
Use a MESSAGE_MAP for that, ie:
private:
MESSAGE void __fastcall HandleMessage(TMessage &Message);
public:
BEGIN_MESSAGE_MAP
VCL_MESSAGE_HANDLER(TH_MESSAGE, TMessage, HandleMessage)
END_MESSAGE_MAP(TForm)
void __fastcall TForm1::HandleMessage(TMessage &Message)
{
//....
// this is not required for user-defined messages
TForm::Dispatch(&Message);
}
Gambit
Technical Details
Message-ID:
<483dbcbb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.iad!news.highwinds-media.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<483da620$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dc2961ba4f932b22 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <483da620$1@newsgroups.borland.com> Subject: Re: Delphi threading by example article in C++ Builder 2007 format Date: Wed, 28 May 2008 13:11:56 -0700 Lines: 32 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <483dbcbb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1212005563 207.178.157.90 (28 May 2008 13:12:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.iad!news.highwinds-media.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail