Article View: borland.public.cppbuilder.database.ado
Article #5345Re: ADO without ADOExpress
From: Sandor Bognar
Date: Wed, 06 Jun 2001 08:22
Date: Wed, 06 Jun 2001 08:22
48 lines
1979 bytes
1979 bytes
Hi Joachim,
I was playing with this last week, without going to deep.
#include "adodb_2k.h"
_RecordsetPtr pRecSet;
wchar_t *ConnStr=L"TEST DSN";
pRecSet = CreateComObject(CLSID_Recordset);
pRecSet->Open(L"Select * from vendors order by vendorno",ConnStr,
adOpenStatic, adLockReadOnly,adCmdText);
pRecSet->MoveFirst();
<snip>
pRecSet->Close();
pRecSet->Release();
Note that I don't know if I have ADO2.6 but for the code above I didn't have
to import any tlb.
Hope this helps
Sandor
> cBuilder5 Prof., MS SQLServer 7.0, ADO 2.6
>
> Hello,
>
> can anyone give me a complete example of a simple program
> with connection, recordset, etc. only using ADO 2.6 without
> ADOExpress.
> I have several problems:
> - after importing the ADO2.6 type library the compiler shows errors =>
> changing man. the .h-file
> - i only have MSVC++ or Delfi examples => I don't know how to do this with
> the cBuilder
>
> Heeeeeeeeelp!
> Joachim
>
>
Technical Details
Message-ID:
<3b1de867_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!skynet.be!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-nue1.dfn.de!news-han1.dfn.de!news-koe1.dfn.de!RRZ.Uni-Koeln.DE!nntp.CS.Uni-Magdeburg.De!PeerFeed.KWeb.on.ca!dnewsReferences:
<3b179e3c_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,e13bb3fb20c1e339 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-06-06 01:33:15 PST From: "Sandor Bognar" <bognars@mail.uti.hu> Newsgroups: borland.public.cppbuilder.database.ado References: <3b179e3c_1@dnews> Subject: Re: ADO without ADOExpress Date: Wed, 6 Jun 2001 10:22:54 +0200 Lines: 54 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: 213.163.25.15 Message-ID: <3b1de867_1@dnews> X-Trace: dnews 991815783 213.163.25.15 (6 Jun 2001 01:23:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!skynet.be!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-nue1.dfn.de!news-han1.dfn.de!news-koe1.dfn.de!RRZ.Uni-Koeln.DE!nntp.CS.Uni-Magdeburg.De!PeerFeed.KWeb.on.ca!dnews