🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
5 messages
5 total messages Started by Stefano Del Furia Thu, 09 Nov 2000 21:17
Using ADO in Cpp Builder without ADOExpress
#6073
Author: Stefano Del Furia
Date: Thu, 09 Nov 2000 21:17
5 lines
916 bytes
Dear friends, 
could someone send to me some examples orlinks about Using ADO in Cpp
Builder without ADOExpress'
Thanks
Stefano Del Furia
Re: Using ADO in Cpp Builder without ADOExpress
#6077
Author: Relaxin
Date: Fri, 10 Nov 2000 03:27
15 lines
1497 bytes
I have created my own set of ADO Controls to over come some of the problems
I encountered with ADO Express.

The main part of what you must do is import the typelib of the ADO library
(msador15.dll, something like that).
This will give you all the access you need to ADO.

From there it's up to you to do with it as you wish.
"Stefano Del Furia" <delfo@tech-center.com> wrote in message
news:125m0t8vp63rrig79juhk1u5vlsbfjsnuu@4ax.com...
> Dear friends,
> could someone send to me some examples orlinks about Using ADO in Cpp
> Builder without ADOExpress'
> Thanks
> Stefano Del Furia
Re: Using ADO in Cpp Builder without ADOExpress
#6087
Author: Stefano Del Furia
Date: Sun, 12 Nov 2000 13:16
23 lines
1644 bytes
I have found some trouble, when i have write this piece of code:

  TCOM_Connection Con;
  TCOM_Recordset Tables = CoRecordset::Create();

  Tables1 = Con->OpenSchema(adSchemaTables, TVariant(EmptyParam),
TVariant(EmptyParam));

and i get an errore message because the OpenSchema method cannot
return a TCOM_Recordset object but a _Recordset object.
Could someone help me?
Thanks
Stefano

"Relaxin" <relaxin@yourhouse.com> wrote:

>I have created my own set of ADO Controls to over come some of the problems
>I encountered with ADO Express.
>
>The main part of what you must do is import the typelib of the ADO library
>(msador15.dll, something like that).
>This will give you all the access you need to ADO.
>
Re: Using ADO in Cpp Builder without ADOExpress
#6088
Author: Olov Lundin
Date: Sun, 12 Nov 2000 18:19
31 lines
1912 bytes
Try this link

http://cslp.comp.nus.edu.sg/luakt/programming/Using%20ADO%20with%20Borland%20C%2B%2B%20Builder%204.htm

Olle

Stefano Del Furia wrote:
> 
> I have found some trouble, when i have write this piece of code:
> 
>   TCOM_Connection Con;
>   TCOM_Recordset Tables = CoRecordset::Create();
> 
>   Tables1 = Con->OpenSchema(adSchemaTables, TVariant(EmptyParam),
> TVariant(EmptyParam));
> 
> and i get an errore message because the OpenSchema method cannot
> return a TCOM_Recordset object but a _Recordset object.
> Could someone help me?
> Thanks
> Stefano
> 
> "Relaxin" <relaxin@yourhouse.com> wrote:
> 
> >I have created my own set of ADO Controls to over come some of the problems
> >I encountered with ADO Express.
> >
> >The main part of what you must do is import the typelib of the ADO library
> >(msador15.dll, something like that).
> >This will give you all the access you need to ADO.
> >
Re: Using ADO in Cpp Builder without ADOExpress
#6089
Author: B Angus
Date: Mon, 13 Nov 2000 07:48
40 lines
2705 bytes
Hey Olle Thanks for the post... This looks like exactly what we need to be
able to use ADO... but I ran into trouble.

I tried the process at the webpage given -- the directions seem to be for
BCB4, but I think I did what was required.  I wanted to add ADO 2.6 to my
project so I used the Project|Import Type Library options of the BCB5 main
menu. I selected Microsoft Activex Data Objects 2.6 Library from the list of
options. Then I clicked install and BCB5 tried to build the import library.

We got the following errors before the compile terminated. Anybody have any
ideas as to what we're doing wrong? These errors occurred regardless of
whether we checked the Generate Component Wrapper check box or not.

[C++ Warning] ADODB_OCX.h(643): W8022 '_fastcall TRecord::GetChildren()'
hides virtual function '_fastcall TComponent::GetChildren(void (_fastcall *
(_closure )(TComponent *))(TComponent *),TComponent *)'
[C++ Error] ADODB_OCX.cpp(131): E2034 Cannot convert 'TVariant' to 'long *'
[C++ Error] ADODB_OCX.cpp(131): E2342 Type mismatch in parameter 'Options'
(wanted 'long *', got 'TVariant')
[C++ Error] ADODB_OCX.cpp(139): E2034 Cannot convert 'TVariant' to 'long *'
[C++ Error] ADODB_OCX.cpp(139): E2342 Type mismatch in parameter 'Options'
(wanted 'long *', got 'TVariant')

Any ideas what I'm doing wrong?

Thanks Bill A.
, "Olov Lundin" <olov.lundin@telia.com> wrote in message
news:3A0EDF45.BB7388D7@telia.com...
> Try this link
>
>
http://cslp.comp.nus.edu.sg/luakt/programming/Using%20ADO%20with%20Borland%2
0C%2B%2B%20Builder%204.htm
>
> Olle
>
> Stefano Del Furia wrote:
> >
> > I have found some trouble, when i have write this piece of code:
> >
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads