As a teacher, no specific project development, but like early adopters, inadvertently began chasing stars.
Changed Win7, installed the Chinese version of Microsoft Visual Studio 2010, July 22 SQLite released version 3.7.0. Of course I want to try it.
First, get the source code
Download: Http://www.sqlite.org/sqlite-amalgamation-3_7_0.zip
Unzip (whatever you specify) into the directory where you want to place it (I put it in the D:\SourceCode\sqlite_source\amalgamation)
Ii. Establishment of the project
New project in VS2010 VC + + Win32 project: Named SQLite370
In the second step of the wizard, "Application Type" Select DLL, "Additional Options" select "Empty Project"
In the solution Support Manager, right-click on "header File", select "Add" and then "existing" to add the two. h files under the extracted directory to the project.
Open the Project Properties page and set the target file name in general, which is to compile the SQLite3.dll
Set the preprocessor definition for the "C + +" preprocessor, click the small arrow on the right, open the drop-down list, point < Edit > Open the Settings dialog box
Add "Sqlite_enable_column_metadata"
Set the "module definition file" in "Input" under "linker", that is, the path of sqlite3.def in the extracted directory, and output the sqlite3.lib after compiling. Ditto, point to the right of the small arrow, open the drop-down list, point < Edit > Open the Settings dialog box, the directory path can contain spaces, Chinese.
Iv. completion of
Build on the line. I will get the SQLite3.dll replaced by the Sqlitemaestro installation directory under the SQLite3.dll to test, through.
Third, set the project properties are also added sqlite3.c to the project under "Source Files", as a result.
Microsoft Visual Studio 2010 Chinese version compiled SQLlite3.7.0 version