in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Visual C++2008 Express

Last post 01-18-2010 7:40 AM by Knch. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-17-2010 10:05 PM

    Visual C++2008 Express

    Does anyone have a good easy to follow tutorial on getting System.Data.SQLite working with Visual C++ 2008 Express (free edition)? I went through the setup.exe, and added the .lib as a reference to the project, but it doesn't seem to recognize the library. Thanks, Bill using System.Data.SQLite; void ExampleAIModule::onStart() { // Opens an unencrypted database SQLiteConnection cnn = new SQLiteConnection("Data Source=c:\\sample.db"); .\Example.cpp(8) : error C2143: syntax error : missing ';' before '.' .\Example.cpp(8) : error C2873: 'System' : symbol cannot be used in a using-declaration .\Example.cpp(8) : error C2059: syntax error : '.' .\Example.cpp(19) : error C2065: 'SQLiteConnection' : undeclared identifier .\Example.cpp(19) : error C2146: syntax error : missing ';' before identifier 'cnn' .\Example.cpp(19) : error C2065: 'cnn' : undeclared identifier .\Example.cpp(19) : error C2061: syntax error : identifier 'SQLiteConnection'
    Filed under:
  • 01-18-2010 7:40 AM In reply to

    • Knch
    • Top 50 Contributor
    • Joined on 02-10-2009
    • Posts 30

    Re: Visual C++2008 Express

    Not sure about this (as I haven't tried anything with C++ for quite some time) but I think you need to reference the DLL.
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems