Page 1 of 1

Sqlite runtime dll for PB 4.20?

Posted: Fri Jun 06, 2008 8:33 am
by dell_jockey
Hi Group,

yesterday I noticed that there's no SQLITEx.DLL in my PB4.20 directory tree. Don't we need to pack it with our applications anymore? That would be great! ;)

Posted: Fri Jun 06, 2008 9:10 am
by Mistrel
There is a sqlite3.lib in the PureLibraries\Windows\Libraries folder. The functions appear to be statically linked now (yay!).

Posted: Fri Jun 06, 2008 10:23 am
by dell_jockey
Indeed, that's the one I found too. Statically linked now... COOL, c'est très très bon!
Thanks PureTeam! ;)

Posted: Sat Jun 07, 2008 2:26 am
by NSaneBMX
Yeah, Thanks!!! (...)

Posted: Sun Jun 08, 2008 2:41 pm
by pdwyer
Does anyone know how to get to the other functions in there? Or can you only access it through database functions that PB has exported?

Posted: Sun Jun 08, 2008 2:51 pm
by ts-soft
You can import all functions like here: http://www.purebasic.fr/english/viewtop ... 853#240853
but you can't mix this without the handle to the database

Posted: Sun Jun 08, 2008 2:59 pm
by pdwyer
but this is going to need a dll too isn't it? (I'm not very experienced with using libs) If we use PB's commands to open a DB and then want to use some other SQLite function out of that lib, can we? (assuming we can find DB and statement handles at some stage)

Posted: Sun Jun 08, 2008 3:20 pm
by ts-soft
> but this is going to need a dll too isn't it?
No, this using the static lib, no dll!
Only the older wrapper in the thread using a dll

Posted: Sun Jun 08, 2008 3:25 pm
by pdwyer
I didn't notice that addition!

Thanks

Posted: Sun Jun 08, 2008 3:38 pm
by ts-soft

Code: Select all

UseSQLiteDatabase()

ImportC "" 
First line is command for pbcompiler to import the static lib and
in the second command we can use "" for import :wink: