Article View: borland.public.cppbuilder.nativeapi
Article #10689Re: BCB6 custom message handler
From: Uriah Liggett
Date: Thu, 25 Mar 2004 14:55
Date: Thu, 25 Mar 2004 14:55
30 lines
2118 bytes
2118 bytes
Thanks! That fixed the problem. Remy Lebeau (TeamB) wrote: > "Uriah Liggett" <uriahliggett@crosswinds.net> wrote in message > news:4061bf1f@newsgroups.borland.com... > > >>[C++ Error] frmMsgHndlr.h(36): E2219 Wrong number of >>arguments in call of macro 'MESSAGE_HANDLER' > > > Are you, by chance, using the ATL in your project? The ATL has its own > MESSAGE_HANDLER macro which is not compatible with the MESSAGE_HANDLER that > you are trying to use. Which is why the VCL has a separate > VCL_MESSAGE_HANDLER macro for this purpose: > > VCL_MESSAGE_HANDLER( UPDATE_GUI_PRIMARY_HOST, TMessage, > UpdateGUIPrimaryHost ) > > VCL_MESSAGE_HANDLER does all of the actual work for a VCL message map. When > ATL is not used, MESSAGE_HANDLER is just a #define for VCL_MESSAGE_HANDLER. > But when ATL is used, MESSAGE_HANDLER is the ATL's MESSAGE_HANDLER, not the > VCL's. As such, you should always use VCL_MESSAGE_HANDLER when putting a > message map into a VCL class, then you don't have to worry about this issue. > > > Gambit > >
Technical Details
Message-ID:
<4062f2d6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4061bf1f@newsgroups.borland.com> <4061cca5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1ed9217ae15d9e69 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-25 07:10:37 PST Date: Thu, 25 Mar 2004 09:55:10 -0500 From: Uriah Liggett <user@domain.invalid> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: BCB6 custom message handler References: <4061bf1f@newsgroups.borland.com> <4061cca5$1@newsgroups.borland.com> In-Reply-To: <4061cca5$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.19.16.1 Message-ID: <4062f2d6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080226518 69.19.16.1 (25 Mar 2004 06:55:18 -0800) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail