in

System.Data.SQLite

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

VS 2008 C++ samples

Last post 02-03-2010 11:24 AM by stutak. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-03-2010 11:24 AM

    • stutak
    • Not Ranked
    • Joined on 02-03-2010
    • Posts 1

    VS 2008 C++ samples

    Hi all.

    Can someone give me working  c++ forms sample?

    Because I cant find some tutorial/man and recieving lot of error...

    For example:

        System::String^ connection_string = "Data Source=C:\\test.db";
        SQLiteConnection con = gcnew SQLiteConnection(connection_string);
        con.Open();
        SQLiteCommand cmd = gcnew SQLiteCommand(con);     // Here I've got error and I was unable to link command with connection(if I'll write this code:

    cmd.connection=con;//cannot convert parameter 1 from 'System::Data::SQLite::SQLiteConnection' to 'System::Data::Common::DbConnection ^'

    )

     

    Would be great if someone got working c++ samples for:

    1. Open database;

    2. Insert data;

    3. Read and display data; (is there way to read data in array[ ][ ] or something? )

     

     

     

     

    Thank You for this product.

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems