Re: Adding ODBC driver programmatically
- From: "Todd Frankson" <tfrankson@xxxxxxxxxxxxx>
- Date: Tue, 27 Nov 2007 10:36:33 -0500
"Mark Tiede" <mtiede@xxxxxxxxxxx> wrote in message
news:474aeeb1$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Todd,and
In my case, the driver may or may not be installed. I don't want the
user to have to do that.
In my application, they have a main database and associated files
(happens to be images). They can choose to export their system to a
standalone system. This creates a Firebird (or optionally MSDE) database,
copies the contents, copies all the relevant files, copies the files for
Firebird support, and a couple of other things to a folder. This folder
all its contents can then be burnt to a CD or put on a thumb drive, or puthooks
on a network. If it is a thumb drive, for instance, an autoinf file
automatically loads the default windows dialog with the top item being my
app. When the app loads, it configures the ODBC entry automatically,
up the database and starts running. When they are finished, it removesall
remnants of itself.
Just a plug and play app is the intent. So there can be no assumptions
about the driver already being installed.
And that is fine...
My point was there is an API call to create the ODBC entry, and that the
code you put together for that
was repetitive...
Your code can still check for the driver, and I am betting there is an API
call for that too, Install it as needed
But why manually write code when you could pass the parameters to the API
call once you determine everything
else is there?
Doesn't replicating existing functionality of the O.S. lead to a greater
chance of error?
Doesn't that lead to bloated code, superfluous code?
Tell me, do you code your own dialog boxes or use the VCL components
(Wrappers for API calls)??
.
- Follow-Ups:
- Re: Adding ODBC driver programmatically
- From: Mark Tiede
- Re: Adding ODBC driver programmatically
- References:
- Adding ODBC driver programmatically
- From: Bob
- Re: Adding ODBC driver programmatically
- From: Mark Tiede
- Re: Adding ODBC driver programmatically
- From: Todd Frankson
- Re: Adding ODBC driver programmatically
- From: Mark Tiede
- Re: Adding ODBC driver programmatically
- From: Todd Frankson
- Re: Adding ODBC driver programmatically
- From: Mark Tiede
- Adding ODBC driver programmatically
- Prev by Date: Re: Milliseconds to SQL Server DateTime
- Next by Date: Re: dbGrid Run Time Error
- Previous by thread: Re: Adding ODBC driver programmatically
- Next by thread: Re: Adding ODBC driver programmatically
- Index(es):
Relevant Pages
|