SQLite mit VB 6.0
1. August 2006Um Zugriff auf SQLite Datenbanken mit VB zu erlangen sind einige Schritte nötig:
- Zuerst muss man den Wrapper für VB 6.0 kompilieren:
Die Anleitung dazu gibt’s hier und den schon veränderten SourceCode weiter unten zum Download. Die resultierende Datei “vb-sqlite.dll” kopiert man dann ins Systemverzeichnis.
(Falls man sich das kompilieren sparen will, kann man auch auf andere – zur folgenden Klasse inkompatible – Lösungen zurückgreifen. z.B.: Wrapper von GeckoWare) - Dann benötigt man noch – zur einfacheren Handhabung der Abfragen – eine Klasse, die die Komunikation mit dem Wrapper abwickelt.
Download
Version 3.3.6
Spenden sind ausdrücklich erwünscht






the dll doesnt not work. please upload a working one.
mj mendoza | 20. November 2006 | 13:37the dll doesnt not work. please upload a working one. thanks…
I'm working on that ;-) I'll upload the new version soon...
admin | 21. November 2006 | 21:23I’m working on that
I’ll upload the new version soon…
Now I've updated the downloads with a working copy of
admin | 29. November 2006 | 12:25Now I’ve updated the downloads with a working copy of the dll and the wrapper class. The Version is still 3.3.6!
Have you got a sample code for accessing a DB
Jürgen | 3. Mai 2007 | 18:37Have you got a sample code for accessing a DB File.
It didn’t work here …
Here is a sample on how to access a SQLite-Database: Dim
admin | 4. Mai 2007 | 08:41Here is a sample on how to access a SQLite-Database:
Dim cSqlite As New cSqlite Dim cRows As Collection Dim i As Long cSqlite.File = "[Path-to-db]" cSqlite.openFile If cSqlite.execute("[SQL statement]") Then Set cRows = cSqlite.Rows Debug.Print cSqlite.ColumnsString For i = 1 To cRows.Count Debug.Print cSqlite.RowString(i) Next End If cSqlite.closeFileVery nice work. However, I have 2 problems: One minor one:
interesting | 20. Mai 2007 | 18:05Very nice work. However, I have 2 problems:
One minor one: When giving an invalid filename, openfile always returns true.
One major one: I get a crash when executing a “SELECT * FROM table” on a valid sqlite ver 3 file (on some others it’s ok).
“AppName: vb6.exe ModName: vb-sqlite.dll Offset: 00311a0″
Other thing I noticed: the dll has a dependency to msvcrt80.dll which is not existing on my system.
@interesting: Just check before opening the db if the file exists... I
admin | 27. Mai 2007 | 12:45@interesting:
Just check before opening the db if the file exists…
I don’t know why “SELECT * FROM table” doesn’t work…
Yes, the Microsoft Visual C++ 2005 Redistributable Package has to be installed
Hi, ich benutze die Klasse und alles funktioniert soweit ganz gut,
Michael Wandel | 12. Juli 2007 | 14:46Hi,
ich benutze die Klasse und alles funktioniert soweit ganz gut, nun würde ich meine DB gerne mit einem Passwort verschlüsseln, wie übergebe ich diese beim Öffnen der DB ?
Gruß, Michael