Article View: borland.public.cppbuilder.database.ado
Article #3958Re: ADO+consol
From: Arnie Mauer
Date: Thu, 25 Apr 2002 15:18
Date: Thu, 25 Apr 2002 15:18
27 lines
1560 bytes
1560 bytes
Create a console app that uses the VCL, then just dynamically create the
objects. For example:
#include <adodb.hpp>
...
int main( ing argc, char * argv[] )
{
TADOConnection * conn = new TADOConnection( 0 );
conn->ConnectionString = "whatever ...";
conn->LoginPrompt = true; // or false as required.
conn->Open();
TADOQuery * q = new TADOQuery( conn );
q->Connection = conn;
q->SQL->Text = "Your SQL statement";
etc.
- Arnie
"Christoffer Christoffersen" <christoffer.christoffersen@lxg.com> wrote in
message news:3cc7f171_2@dnews...
> Is it possible to use ADO with an consol-application, if so does anyone
have
> an code example?
>
> Regards Chistoffer
>
>
Technical Details
Message-ID:
<3cc81e51$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-x2.support.nl!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3cc7f171_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,eff32c41ed316fd6 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-04-25 08:25:00 PST From: "Arnie Mauer" <amauer@vrms.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3cc7f171_2@dnews> Subject: Re: ADO+consol Date: Thu, 25 Apr 2002 11:18:42 -0400 Lines: 29 Organization: VRMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 209.140.211.97 Message-ID: <3cc81e51$1_2@dnews> X-Trace: dnews 1019747921 209.140.211.97 (25 Apr 2002 08:18:41 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-x2.support.nl!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews