Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3235354
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:29:49+00:00 2026-05-17T17:29:49+00:00

I decided to use SQLite as it allows to store database into a single

  • 0

I decided to use SQLite as it allows to store database into a single file. I think I have managed to do a database with SQLite Database Browser.

How can I read that data in a C/C++ program?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:29:50+00:00Added an answer on May 17, 2026 at 5:29 pm

    How about the ‘An Introduction to Sqlite C/C++ Interface‘, and there is a whole C++ example here on CodeProject.

    This is bits of the more full sample,

    #include "CppSQLite.h"
    #include <ctime>
    #include <iostream>
    using namespace std;
    const char* gszFile = "C:\\test.db";
    
    int main(int argc, char** argv)
    {
        try
        {
            int i, fld;
            time_t tmStart, tmEnd;
            CppSQLiteDB db;
    
            cout << "SQLite Version: " << db.SQLiteVersion() << endl;
    
            db.open(gszFile);
            cout << db.execScalar("select count(*) from emp;") 
                   << " rows in emp table in ";
            db.Close();
        }
        catch (CppSQLiteException& e)
        {
            cerr << e.errorCode() << ":" << e.errorMessage() << endl;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple SQLite database I use to track invoices. I recently decided
I have decided to use crypt() to encrpyt my passwords on my database using
How to upgrade read only sqlite database I have tried to change to SQLiteDatabase.OPEN_READWRITE);
Decided to use Apache's Common Configuration package to parse an XML File. I decided
I am working on a database access layer project and decided to use Linq
I've decided to use SQLite for my personal development project, because it just sprung
I have been tasked with finding a good fit for a database to use
I'm working on a program using a SQL database (I use SQLite). What my
I am developing iPhone application using SQLite . I decided to use fmdb .
I my quest to develop a cross platform application I have decided to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.