Subject | Re: [firebird-support] Path to DB with embedded |
---|---|
Author | Woody (TMW) |
Post date | 2005-06-27T20:47:55Z |
From: "Chad Z. Hower aka Kudzu" <chad-jm@...>
knowledge they are at until they tell you. :)
settings can be maintained by the app, not the DLL? Would this not work in
your case?
Woody (TMW)
> :: If the database is in the same directory as the app, you can get theWell, you never know what people have tried already and what level of
> :: 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.
knowledge they are at until they tell you. :)
>have
> :: 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
> 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)