🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO without ADOExpress

#5237
From: Mike
Date: Mon, 25 Jun 2001 10:57
61 lines
2035 bytes
Hi
Does anyone know how to display the recordset inside a TMemo or Tedit
Thanks
Mike

"Sandor Bognar" <bognars@mail.uti.hu> wrote:
>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: <3b371915$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b179e3c_1@dnews> <3b1de867_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-25 04:09:27 PST
From: "Mike" <Mike@global.co.uk>
Sender: "Mike" <Mike@global.co.uk>
Reply-To: "Mike" <Mike@global.co.uk>
Subject: Re: ADO without ADOExpress
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 213.121.242.170 213.121.242.170    
References: <3b179e3c_1@dnews>  <3b1de867_1@dnews> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3b371915$1_1@dnews>
Date: 25 Jun 2001 03:57:25 -0700
X-Trace: dnews 993466645 207.105.83.65 (25 Jun 2001 03:57:25 -0700)
Lines: 62
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews