crea-doo | weblog

Not just another weblog
  • rss
  • Home
  • Anmelden

SQLite mit VB 6.0

1. August 2006

Um 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

Wrapper
Wrapper (SourceCode)
Klasse

Spenden sind ausdrücklich erwünscht ;-)

Kategorien
Technology, VB
RSS Kommentare
RSS Kommentare
Trackback
Trackback

« playlistext – 1.0.0.131 Age Of Empires III Loader – Readme »

8 Antworten

the dll doesnt not work. please upload a working one.

mj mendoza | 20. November 2006 | 13:37

the 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:23

I’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:25

Now 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:37

Have 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:41

Here 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.closeFile

Very nice work. However, I have 2 problems: One minor one:

interesting | 20. Mai 2007 | 18:05

Very 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:46

Hi,

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

Schreib einen Kommentar

Du kannst diese Tags verwenden : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Navigation

  • Personal Feed für alle unter Personal abgelegten Artikel
  • Podcast Feed für alle unter Podcast abgelegten Artikel
  • Site News Feed für alle unter Site News abgelegten Artikel
  • Technology Feed für alle unter Technology abgelegten Artikel
    • GPS Feed für alle unter GPS abgelegten Artikel
    • iPod Feed für alle unter iPod abgelegten Artikel
    • iTunes Feed für alle unter iTunes abgelegten Artikel
    • PHP Feed für alle unter PHP abgelegten Artikel
    • VB Feed für alle unter VB abgelegten Artikel
      • iTunesWatcher Feed für alle unter iTunesWatcher abgelegten Artikel
    • WordPress Feed für alle unter WordPress abgelegten Artikel
      • iTunesSpy Feed für alle unter iTunesSpy abgelegten Artikel

Suche

Links

  • Blogroll
    • bartelme.at
    • bensite.net
    • Christoph
    • computerbase.de
    • CSS Beauty
    • freesoftwaremagazine.com
    • pentrix
    • Pixelgraphix
    • tomsnetworking.com
rss RSS Kommentare valid xhtml 1.1 powered by Wordpress FireFox - Search Plugin