Article View: borland.public.cppbuilder.database.ado
Article #3209TADOTable and BeforeEdit Event Handler
From: Kim Utley
Date: Fri, 06 Dec 2002 16:17
Date: Fri, 06 Dec 2002 16:17
20 lines
1568 bytes
1568 bytes
Hi All!
Have what should be a very simple question. I wish to write an event handler
for BeforeEdit and AfterEdit. However, I'm getting the following error on a
function declared as:
void __fastcall MyBeforeEdit( TDataSet * dataSet ) {
// some stuff...
}
Cannot convert 'void (__fastcall *)TDataSet *)' to 'void (__fastcall *
(__closure)(TDataSet *))(TDataSet *)'
Does this mean I have to derive a class from TADOTable in order for the
class to call my functions? If so it would seem strange since I get a
pointer to the TDataSet object as an argument.
TIA,
Kim
Technical Details
Message-ID:
<3df0cd97$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,8ef346d90d5f49bd,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-12-06 08:40:37 PST From: "Kim Utley" <kim@simsware.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: TADOTable and BeforeEdit Event Handler Date: Fri, 6 Dec 2002 10:17:30 -0600 Lines: 22 Organization: SIMS, Inc. 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: 65.205.74.136 Message-ID: <3df0cd97$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1039191447 65.205.74.136 (6 Dec 2002 08:17:27 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail