Article View: borland.public.cppbuilder.nativeapi
Article #12957Re: ReportEvent api
From: Remy Lebeau (TeamB)
Date: Mon, 10 Nov 2003 02:30
Date: Mon, 10 Nov 2003 02:30
20 lines
1842 bytes
1842 bytes
"Mike Collins" <mikec@kr8.co.uk> wrote in message news:3faeedf8@newsgroups.borland.com... > The only problem I'm having now is trying to convert the > AnsiString that I'm passing into the function, into a valid > parameter that I can pass to ReportEvent. At the moment, > I'm hacking it like this: <snip> That is the way to do it. It will work fine. > but I keep getting extra data being written at the end string. That should not be possible. AnsiString is NULL-terminated, and ReportEvent() will dynamically determine the length of each string in the array that is passed to it. I have not noticed the problem you describe. Gambit
Technical Details
Message-ID:
<3faef835$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!opentransit.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3fac4142@newsgroups.borland.com> <3fac7ee3$1@newsgroups.borland.com> <3fad98bc@newsgroups.borland.com> <3fadc4c3$1@newsgroups.borland.com> <3fae3ecb$1@newsgroups.borland.com> <3faeb8b8$2@newsgroups.borland.com> <3faeedf8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b799f6aac84a0ff5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-09 18:37:55 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fac4142@newsgroups.borland.com> <3fac7ee3$1@newsgroups.borland.com> <3fad98bc@newsgroups.borland.com> <3fadc4c3$1@newsgroups.borland.com> <3fae3ecb$1@newsgroups.borland.com> <3faeb8b8$2@newsgroups.borland.com> <3faeedf8@newsgroups.borland.com> Subject: Re: ReportEvent api Date: Sun, 9 Nov 2003 18:30:26 -0800 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.137.149 Message-ID: <3faef835$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1068431413 67.22.137.149 (9 Nov 2003 18:30:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!opentransit.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail