🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1122

Re: TADODataSet and CodeGuard error

#1122
From: Leen Keus
Date: Mon, 10 Jan 2005 00:15
44 lines
2379 bytes
Hi,

I get the same GodeGuard error on TADODataSet. I must use a TADODataSet in 
the TADOConnection->OpenSchema method, but this method does not work because 
of this error. In some examples how to use TADODataSet, I found the 
following statement:

TADODataSet *ds = new TADODataSet (NULL); // NULL instead of this or Owner!

But this does not work, get the same CodeGuard error.

Does any one have a solution so far?

Leen

"Mich" <michellep@timemarkinc.com> schreef in bericht 
news:41c1b81f$1@newsgroups.borland.com...
>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: <41e1c8fa@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41acbca3@newsgroups.borland.com> <41c1b81f$1@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: "Leen Keus" <lj.keus@tiscali.nl>
Newsgroups: borland.public.cppbuilder.database.ado
References: <41acbca3@newsgroups.borland.com> <41c1b81f$1@newsgroups.borland.com>
Subject: Re: TADODataSet and CodeGuard error
Date: Mon, 10 Jan 2005 01:15:33 +0100
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 195.240.207.162
Message-ID: <41e1c8fa@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105316090 195.240.207.162 (9 Jan 2005 16:14:50 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail