 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Gregory Guest
|
Posted: Tue Jul 12, 2005 9:15 am Post subject: Delphi 2005 winforms : can one use ADO? |
|
|
Hello,
When I make A winform .NET project I dont have the ADO.Net components
available, and if I go in the 'Installed .NET components and check the
checkbox so they appear then when I try to put one on the form I get :
'La création d'une instance de 'Borland.Vcl.TADOConnection' a échoué, car
'System.MissingMethodException: Constructor on type
Borland.Vcl.TADOConnection not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at Borland.Studio.Host.CreationManager.a(Type , Object[] , Type[] ,
Boolean )'.'
So Is it possible to use the ADO components under D2005 Pro in a Winform
project ?
Thank's
Greg
|
|
| Back to top |
|
 |
Marc Scheuner Guest
|
Posted: Wed Jul 13, 2005 5:45 am Post subject: Re: Delphi 2005 winforms : can one use ADO? |
|
|
| Quote: | When I make A winform .NET project I dont have the ADO.Net components
available, and if I go in the 'Installed .NET components and check the
checkbox so they appear then when I try to put one on the form I get :
'La création d'une instance de 'Borland.Vcl.TADOConnection' a échoué, car
So Is it possible to use the ADO components under D2005 Pro in a Winform
project ?
|
I think you're mixing up some things here - ADO and ADO.NET.
ADO is a COM-based set of components, which is available in .NET, if
you must use them, by COM Interop. You will need to add a reference in
your project to the COM class library for ADO.
I don't see any reason why you'd want to do this, except if you can't
find a way to get at your data with ADO.NET
You *DEFINITELY* have ADO.NET available in your Winforms project -
again, if you want to use it. You should see the "Borland Data
Provider" (BDP) components in your toolbox - if not, you can always
add them manually.
I would strongly recommend using ADO.NET over straight, COM-based ADO,
for a number of reasons - ease of use and performance among the top
reasons for this.
Marc
================================================================
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
|
|
| Back to top |
|
 |
Gregory Guest
|
Posted: Wed Jul 13, 2005 1:56 pm Post subject: Re: Delphi 2005 winforms : can one use ADO? |
|
|
Yes I did mean ADO.NET, and the components do not work under my copy of
Delphi 2005 with update 2. I guess I'll have to reinstall again....
But are they easyer or faster than the BDP components ? (for Firebird
databases) and can one autogenerate the SQL for the insert/modify/delete...
?
Thank's
Greg
"Marc Scheuner" <no.spam (AT) for (DOT) me> a écrit dans le message de news:
[email]mda9d1tohplb6nku0a0jd4pb37vpniranh (AT) 4ax (DOT) com[/email]...
| Quote: | When I make A winform .NET project I dont have the ADO.Net components
available, and if I go in the 'Installed .NET components and check the
checkbox so they appear then when I try to put one on the form I get :
'La création d'une instance de 'Borland.Vcl.TADOConnection' a échoué, car
So Is it possible to use the ADO components under D2005 Pro in a Winform
project ?
I think you're mixing up some things here - ADO and ADO.NET.
ADO is a COM-based set of components, which is available in .NET, if
you must use them, by COM Interop. You will need to add a reference in
your project to the COM class library for ADO.
I don't see any reason why you'd want to do this, except if you can't
find a way to get at your data with ADO.NET
You *DEFINITELY* have ADO.NET available in your Winforms project -
again, if you want to use it. You should see the "Borland Data
Provider" (BDP) components in your toolbox - if not, you can always
add them manually.
I would strongly recommend using ADO.NET over straight, COM-based ADO,
for a number of reasons - ease of use and performance among the top
reasons for this.
Marc
================================================================
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
|
|
|
| Back to top |
|
 |
Bill Todd Guest
|
Posted: Wed Jul 13, 2005 2:50 pm Post subject: Re: Delphi 2005 winforms : can one use ADO? |
|
|
Gregory wrote:
| Quote: | Yes I did mean ADO.NET, and the components do not work under my copy
of Delphi 2005 with update 2. I guess I'll have to reinstall again....
But are they easyer or faster than the BDP components ? (for Firebird
|
There is no BDP provider for Firebird. The InterBase driver might work
with Firebird 1.5 (I have not tried it) but this is unlikely to be true
with future releases of Firebird.
| Quote: | databases) and can one autogenerate the SQL for the
insert/modify/delete... ?
|
Yes, you can autogenerate the SQL at design time by clicking a button
in the DataAdapter Configuration dialog or at runtime using the
CommandBuilder object.
--
Bill Todd (TeamB)
|
|
| Back to top |
|
 |
Bill Todd Guest
|
Posted: Wed Jul 13, 2005 2:51 pm Post subject: Re: Delphi 2005 winforms : can one use ADO? |
|
|
By the way, the best place to get answers about ADO.NET or BDP is to
post in the appropriate newsgroup.
--
Bill Todd (TeamB)
|
|
| Back to top |
|
 |
Gregory Guest
|
Posted: Wed Jul 13, 2005 3:50 pm Post subject: Re: Delphi 2005 winforms : can one use ADO? |
|
|
yes, sorry I thaught it was a general ado newsgroup.
The InterBase driver works with Firebird 1.5 up to a point, I did a test
program and I could read the database as long as the SQL was filled at
runtime but could not do the 'Generate SQL' , I posted a message in the BDP
newsgroup about that (you read it and gave me a question by the way).
It seems you just awnserd my questions about the bdp, Sad that it does not
fully support Firebird.
Greg
"Bill Todd" <no (AT) no (DOT) com> a écrit dans le message de news:
[email]42d52a57 (AT) newsgroups (DOT) borland.com[/email]...
| Quote: | By the way, the best place to get answers about ADO.NET or BDP is to
post in the appropriate newsgroup.
--
Bill Todd (TeamB)
|
|
|
| Back to top |
|
 |
Bill Todd Guest
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|