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 7986819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:57:43+00:00 2026-06-04T11:57:43+00:00

i am working on sqlite db using c++ front end. when i try to

  • 0

i am working on sqlite db using c++ front end. when i try to bind variable in the query , it is giving the following error.

here is the code

           for(vector<vector<string> >::iterator it = result.begin(); it < result.end(); ++it)
            {
                vector<string> row = *it;                     
                **sqlite3_bind_text(statement,2,[row.at(1) string],-1, SQLITE_TRANSIENT);**                     
                int result = sqlite3_step(statement);
            }

bolded line is giving the problem which is ” cannot convert ‘Database::InitialSync()::’ to ‘const char*’ for argument ‘3’ to ‘int sqlite3_bind_text(sqlite3_stmt*, int, const char*, int, void ()(void))’”

Can anybody help me in this.

  • 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-06-04T11:57:44+00:00Added an answer on June 4, 2026 at 11:57 am

    You have a syntax error, just use

    sqlite3_bind_text(statement,2, row[1].c_str(), -1, SQLITE_TRANSIENT);
    

    if you need to bing the first (not the zeroth) value from the ‘row’ array.

    If I misunderstand your, please, clarify the thing you want to do, not just this compilation error. I mean what parameter do you want to bind.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working some code that inserts csv rows into an SQLite database using Python.
I am working on rails 3 and sqlite db. Using a IN query. Currently
I am working on I Phone app, In that I am using SQLITE database.
I am working on an iPhone app using a SQLite db. I have some
I am working on a rails application, and I am using Sqlite in my
Hi onListItemClick for listview is not working. Here i am fetching datas from SQLite
i am working on data manipulation using sqlite. how can i insert the datetime
I'm try to insert values into my sqlite table using a python script. It
I'm working on my first Pylons project using SQLalchemy and sqlite. I'd like to
i am working on data manipulation using sqlite. how can i insert the datetime

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.