Article View: borland.public.cppbuilder.nativeapi
Article #12068Re: Binding methods to events
From: Hans Galema
Date: Thu, 01 Jan 2004 18:17
Date: Thu, 01 Jan 2004 18:17
18 lines
1570 bytes
1570 bytes
Nik wrote: > //This is what it made.... > void __fastcall ssSimpleIPC1TextMsgRecieved(TObject *Sender, AnsiString > MsgBuf) > > //And then this is how i bind the event manually.... > simpleIPC->OnTextMsgRecieved=ssSimpleIPC1TextMsgRecieved; An eventhandler should be a memberfunction of a class, not a standalone function. You have to make it it a memberfunction like: void __fastcall MYClass::ssSimpleIPC1TextMsgRecieved(TObject *Sender, AnsiString MsgBuf) Hans.
Technical Details
Message-ID:
<3ff4632e@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:
<3ff3e34b@newsgroups.borland.com> <3ff3fe5b$1@newsgroups.borland.com> <3ff4571a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a9208b78d316a119 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-01 10:39:40 PST Date: Thu, 01 Jan 2004 19:17:24 +0100 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Binding methods to events References: <3ff3e34b@newsgroups.borland.com> <3ff3fe5b$1@newsgroups.borland.com> <3ff4571a$1@newsgroups.borland.com> In-Reply-To: <3ff4571a$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <3ff4632e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072980782 129.125.108.11 (1 Jan 2004 10:13:02 -0700) Lines: 18 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