Subject Re: [firebird-support] Path to DB with embedded
Author Woody (TMW)
From: "Chad Z. Hower aka Kudzu" <chad-jm@...>


> :: If the database is in the same directory as the app, you can get the
> :: directory from the command line used to execute the program.
> :: In Delphi this
> :: is done using ParamStr(0), don't know about other languages.
>
> Its not that easy else I wouldn't have asked. :)
>
> My code is in a DLL, which may or may not be in the same dir as the
> application or the DB.


Well, you never know what people have tried already and what level of
knowledge they are at until they tell you. :)

>
> :: choosing, you can store the location in a INI file or
> :: something similar and
> :: read that before connecting the database component.
>
> Yes of course, but it's a demo and I was trying to ship the sources and
have
> the user run them with zero config.

Why not have the program pass the database object as a parameter so all the
settings can be maintained by the app, not the DLL? Would this not work in
your case?

Woody (TMW)