Integration of SQLite Database With Native Visual C++ Application

Here is the way to Integrate SQLite Database with Visual C++ or Visual studio for win32 console application. I hope you find this helpful!!!!
  • Create a new C++ Win32 Console application.
  • Unzip the DLL and DEF files.
  • Place .DEF file into project’s source folder.
  • Place sqlite3.dll  in a System32 Folder.
  • Open a “Visual Studio Command Prompt (2010)” and change directory to your project source folder.
  • Create an import library using the following command line: LIB /DEF:sqlite3.def
  • Add the library i.e. sqlite3.lib to your working project. 
  • Goto Project Properties -> Configuration Properties -> Linker -> Additional Dependencies.
  • Unzip the sqlite3.h header file and place into your source directory.
  • Include the the sqlite3.h header file in your source code.


1 comment:

  1. Hi!

    How are you?

    I've developed a really useful piece of software, this is Deleaker, a leak detection tool for VC++ developers.

    People who use Deleaker like it, but my problem is that very few developers know about Deleaker.

    I would like to offer you a license for free, and for that you could write me a small review on your blog. What do you think about that?

    Please write me your opinion to Artem.Razin (at) gmail (dot) com!

    Thank you in advance!

    ReplyDelete