Thread View: borland.public.cppbuilder.database.ado
3 messages
3 total messages
Started by Jo�o Cachulo
Mon, 19 Mar 2001 15:22
HELP! - Can I use ADO in a Console Application????
Author: Jo�o Cachulo
Date: Mon, 19 Mar 2001 15:22
Date: Mon, 19 Mar 2001 15:22
12 lines
1192 bytes
1192 bytes
Hello! I'm trying to use the ADO components in a console application and I haven't been successful so far. I need to write on an ACCESS database through a simple console app, but whenever I try to create an instance of TADOConnection I get a runtime error.What am I supposed to pass as the Owner?! As there are no windows or forms, can this be done?! Please help! J.C.
Re: HELP! - Can I use ADO in a Console Application????
Author: Mark Cashman
Date: Tue, 20 Mar 2001 04:12
Date: Tue, 20 Mar 2001 04:12
23 lines
1872 bytes
1872 bytes
Hi, JC! It's not that hard, but there are a few things you need to do. First, when you create the console app, it must be a VCL enabled console app - there's a checkbox in the wizard that runs with File | New | Console Application. You can add a data module to such an application with the usual File | New | Data Module and you can add TADODatabase and other objects to the data module. Then you can use normal design-time components and event handlers. I hope this helps. ------ Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at http://www.temporaldoorway.com - Original digital art, writing, music and more - C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring (Join us!) http://www.temporaldoorway.com/programming/index.htm ------
Re: HELP! - Can I use ADO in a Console Application????
Author: Shannon Broskie
Date: Wed, 21 Mar 2001 22:09
Date: Wed, 21 Mar 2001 22:09
31 lines
1991 bytes
1991 bytes
If you don't want to include a datamodule, just add adodb.hpp to your include list... You can create all of the ADO components in code. "Mark Cashman" <mcashman@temporaldoorway.com> wrote in message news:3AB6D8AF.27699692@temporaldoorway.com... > Hi, JC! > > It's not that hard, but there are a few things you need to do. First, > when you create the console app, it must be a VCL enabled console app - > there's a checkbox in the wizard that runs with File | New | Console > Application. > > You can add a data module to such an application with the usual File | > New | Data Module and you can add TADODatabase and other objects to the > data module. > > Then you can use normal design-time components and event handlers. > > I hope this helps. > > ------ > Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at > http://www.temporaldoorway.com > - Original digital art, writing, music and more - > C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring > (Join us!) > http://www.temporaldoorway.com/programming/index.htm > ------ > >
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