🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

create dataset

#1468
From: Neil
Date: Fri, 25 Jun 2004 11:37
27 lines
1510 bytes
I am trying to create an instance of a TADODataSet, TADOConnection and
TADOCommand
in a non VCL app.  The problem is that when I create the TADODataSet,
I get a code guard error saying: "Method called on illegally casted object".
I can create the TADOCommand and the TADOConnection with no problem.
After I get the CG error, if I run, everything seems the work fine.

What is happening, and how can I fix it.
Thanks.

code:
header file
#include <ADODB.hpp>

TADOConnection *myConnection;
TADOCommand *myCommand;
TADODataSet *myDataSet;

in constructor:
myConnection = new TADOConnection(NULL);  //no problem
...

myCommand = new TADOCommand(NULL); //no problem
...

myDataSet = new TADODataSet(NULL); //problem
...
Technical Details
Message-ID: <40dc0e89@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,cf5b716b3dd35619,start
X-Google-Attributes: gid10698b,public
From: "Neil" <do@not.spam>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: create dataset
Date: Fri, 25 Jun 2004 13:37:59 +0200
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 196.44.195.82
Message-ID: <40dc0e89@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088163465 196.44.195.82 (25 Jun 2004 04:37:45 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail