Article View: borland.public.cppbuilder.database.ado
Article #1037Re: TADODataSet and CodeGuard error
From: Mich
Date: Thu, 16 Dec 2004 16:31
Date: Thu, 16 Dec 2004 16:31
24 lines
1733 bytes
1733 bytes
I get the same error with a TADOConnection object in BCB 5 as soon as I call
Open() or set Connected to true. The ConnectionString for my object is
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + sFilePath +
";Mode=ReadWrite|Share Deny None;Persist Security Info=False"
So far the only luck I've had is to use a TADOTable instead. But now that
is not populating my TDBComboBox through the TDataSource...
--Michelle
"Aleix Ventayol" <aleix@metalcam.com> wrote in message
news:41acbca3@newsgroups.borland.com...
> I'm using C++Builder 6, when I try to create a TADODataSet object,
Codeguard
> says:
> "Method called on illegally casted object"
>
> You can check it using the code:
>
> void __fastcall TForm1::FormCreate(TObject *Sender)
> {
> TADODataSet * ds=new TADODataSet (this);
> }
Technical Details
Message-ID:
<41c1b81f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41acbca3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,26d0f13f1d685e71 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mich" <michellep@timemarkinc.com> Newsgroups: borland.public.cppbuilder.database.ado References: <41acbca3@newsgroups.borland.com> Subject: Re: TADODataSet and CodeGuard error Date: Thu, 16 Dec 2004 08:31:14 -0800 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 216.210.239.242 Message-ID: <41c1b81f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103214623 216.210.239.242 (16 Dec 2004 08:30:23 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail