Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-01

Sqlite usage

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

SteveG

Is it possible to have the sqlite3.dll library (WinXP) dynamically loaded rather than static linked into my Laz program ? The sqlite dll is not in the Windows path (by choice), and I would like to be able to point my prog to it at run time.

At the moment, I just have the sqlitedb unit in the 'uses' of my app.

Thanks
SteveG

Reply by email

Michael Van Canneyt
to SteveG
SteveG wrote 6 lines
Is it possible to have the sqlite3.dll library (WinXP) dynamically loaded rather than static linked into my Laz program ? The sqlite dll is not in the Windows path (by choice), and I would like to be able to point my prog to it at run time. At the moment, I just have the sqlitedb unit in the 'uses' of my app.

The SQLDB sqlite connection loads the library dynamically.

Michael.

Reply by email

Joost van der Sluis
to SteveG: Is it possible to have the sqlite3.dll library (WinXP) dynamically loaded rather than…

Op vrijdag 16-01-2009 om 02:28 uur [tijdzone +1000], schreef SteveG:

Show quoted text 6 lines
Is it possible to have the sqlite3.dll library (WinXP) dynamically loaded rather than static linked into my Laz program ? The sqlite dll is not in the Windows path (by choice), and I would like to be able to point my prog to it at run time. At the moment, I just have the sqlitedb unit in the 'uses' of my app.

Replace sqlitedb with sqlite3dyn (obviously for sqlite 3) and load the library using 'InitialiseSQLite(libraryname);'. Unload it with 'ReleaseSQLite'

Joost.

Reply by email

SteveG
to Joost van der Sluis

Thanks Joost - seems just what I need

Joost van der Sluis wrote 22 lines
Op vrijdag 16-01-2009 om 02:28 uur [tijdzone +1000], schreef SteveG: > Is it possible to have the sqlite3.dll library (WinXP) dynamically > loaded rather than static linked into my Laz program ? > The sqlite dll is not in the Windows path (by choice), and I would like > to be able to point my prog to it at run time. > > At the moment, I just have the sqlitedb unit in the 'uses' of my app. > Replace sqlitedb with sqlite3dyn (obviously for sqlite 3) and load the library using 'InitialiseSQLite(libraryname);'. Unload it with 'ReleaseSQLite' Joost. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email