Re: Adding ODBC driver programmatically




"Mark Tiede" <mtiede@xxxxxxxxxxx> wrote in message
news:474aeeb1$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Todd,

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
and
all its contents can then be burnt to a CD or put on a thumb drive, or put
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,
hooks
up the database and starts running. When they are finished, it removes
all
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)??


.



Relevant Pages

  • Re: checking and Copying a file when system is Loading
    ... DAT files will work only for the Object ... you can definitely do it from the driver. ... user mode DLLs and in the most cases can use any API ... functions like an ordinary app. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Understanding Basics
    ... developers - everything depends on how they handled things. ... anything about the driver - your app should just make API calls, ... deal with a driver that deals with the actual IO stuff behind the scenes.... ...
    (microsoft.public.development.device.drivers)
  • Re: How to install driver automatically
    ... But some app turned off. ... will still be prompted for whether to install it. ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)
  • Re: checking and Copying a file when system is Loading
    ... you can definitely do it from the driver. ... user mode DLLs and in the most cases can use any API ... The app should wait until the SD and Flash filesystem ... Where and how can i make this job a part of O/S image .So that i can do this ...
    (microsoft.public.windowsce.platbuilder)
  • Re: ms install expert needed
    ... > the driver isnt 'exactly' the right one for xp but it works & they dont ... > the printer announces itself as 'new equipment' found everytime i boot. ... > anyhow, everytime i boot, this app wants to 'install' again. ...
    (microsoft.public.windowsxp.general)