Subject | RE: [firebird-support] Path to DB with embedded |
---|---|
Author | Chad Z. Hower aka Kudzu |
Post date | 2005-06-27T20:17:34Z |
:: 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.
:: 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.
:: 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.
:: 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.