🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10765

BCB6 custom message handler

#10765
From: Uriah Liggett
Date: Wed, 24 Mar 2004 17:01
14 lines
1363 bytes
I receive the following error when declaring my message map in BCB6. 
However the same code compiled fine in BCB5.

[C++ Error] frmMsgHndlr.h(36): E2219 Wrong number of arguments in call 
of macro 'MESSAGE_HANDLER'


This is the code that generated the error.

  BEGIN_MESSAGE_MAP
           MESSAGE_HANDLER( UPDATE_GUI_PRIMARY_HOST, TMessage, 
UpdateGUIPrimaryHost )
// some more message handlers are here
END_MESSAGE_MAP(TForm)
Technical Details
Message-ID: <4061bf1f@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-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1ed9217ae15d9e69,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-24 09:10:38 PST
Date: Wed, 24 Mar 2004 12:01:58 -0500
From: Uriah Liggett <uriahliggett@crosswinds.net>
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: BCB6 custom message handler
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.19.16.1
Message-ID: <4061bf1f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080147743 69.19.16.1 (24 Mar 2004 09:02:23 -0800)
Lines: 14
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