Article View: borland.public.cppbuilder.database.ado
Article #3547PromptDataSource +CodeGuard error?
From: jimmymoose
Date: Wed, 31 Jul 2002 08:17
Date: Wed, 31 Jul 2002 08:17
20 lines
1653 bytes
1653 bytes
Set up PromptDataSource as shown below. It opens the dialog box, and the user can choose provider and database source etc Through tracing and inspecting StrCon of the value returned by PromptDataSource i see that it occupies 213 bytes. The last byte is the null terminater. Code guard on Open of Employment File states ive attempted to access 216 bytes when im only pointing to 212 (quadword i suppose) Will removing the null terminator rid me of this bug? but if i do this will it know it has reached the end of string when reading it or go on into memory? and why does it state that a method is called on an illegally cast object? Any help apprec jim EmploymentFile->Close(); WideString StrCon = PromptDataSource((unsigned int)Parent->Handle, "") ; EmploymentFile->ConnectionString = StrCon ; EmploymentFile->Open() ;
Technical Details
Message-ID:
<aa0818c5.0207310017.32b2ca9d@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,fd04bc5ebe8dd6fc,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-07-31 01:17:10 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: jimmymoose@onetel.net.uk (jimmymoose) Newsgroups: borland.public.cppbuilder.database.ado Subject: PromptDataSource +CodeGuard error? Date: 31 Jul 2002 01:17:09 -0700 Organization: http://groups.google.com/ Lines: 20 Message-ID: <aa0818c5.0207310017.32b2ca9d@posting.google.com> NNTP-Posting-Host: 62.252.224.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1028103430 2436 127.0.0.1 (31 Jul 2002 08:17:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 31 Jul 2002 08:17:10 GMT