SQLite can be downloaded to the official site (http://www.sqlite.org/download.html): Linux,mac OS X, compiled files under Windows, and source code, help documentation.
SQLite official download is only available to us a sqlite3.dll with a sqlite3.def file, and does not provide a Lib file for vc++6.0, you can use the Sqlite3.def file generation, the steps are as follows:
1. First extract the sqlite3.h from the source code package (such as Sqlite-amalgamation-3140200.zip) downloaded from the official website.
2. Enter the console and use the VC installation directory under the \bin\lib.exe file (D:\Program files (x86) \microsoft Visual Studio 10.0\vc\bin) to generate the. lib file
Enter the directory where the Def file is located and execute
"D:\Program Files (x86) \microsoft Visual Studio 10.0\vc\bin\lib"/machine:ix86/def:sqlite3.def
The command generates two files: Sqlite3.lib sqlite3.exp
When you run the command, if you are prompted to find MSPDB60. DLL or MSPDB100.dll files, you can search for the file in the VC installation directory and copy it to the bin.
3. Put. H. lib. dll in the project, as you would with other dynamic libraries.
VC using SQLite