🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ADO 2.6

#4290
From: Carlos E. Galavis
Date: Thu, 31 Jan 2002 19:56
23 lines
1758 bytes
Hi group,

Im trying to use ADO 2.6 in C++ Builder Ent., I first imported the type
library, and now I need to create instances of _Connection and _Command, but
I'm not sure how.  I got it to work in Delphi in no time, but in C++ (which
I just started using), I haven't, actually I haven't even been able to
create instances of the objects that I need (_Command and _Connection)
Does anyone have an example, on how to do this?

This is what I tried:

_Connection Conn = CoConnection::Create();

This generates a compilation error indicating that _Connection is an
abstract class.

_Connection *Conn = CoConnection::Create();

Compiles ok, but when I try to assign a value to its properties (i.e.
ConnectionString) I get an Access Violation error.
I'm sure is just a novice error, but I can't figure it out.

Thanks for your help...
Technical Details
Message-ID: <3c59a1e0$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,e0a1a638718cd325,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-01-31 12:12:23 PST
Reply-To: "Carlos E. Galavis" <carlitos@creighton.edu>
From: "Carlos E. Galavis" <carlitos@creighton.edu>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: ADO 2.6
Date: Thu, 31 Jan 2002 13:56:26 -0600
Lines: 25
Organization: Creighton University
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 147.134.143.6
Message-ID: <3c59a1e0$1_1@dnews>
X-Trace: dnews 1012507104 147.134.143.6 (31 Jan 2002 11:58:24 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!dnews