Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Regarding insert query of sqlite3 database

Regarding insert query of sqlite3 database

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelpsqlitequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 7860594
    wrote on last edited by
    #1

    sqlite3_prepare16_v2(dbfile,Query,-1,&statement,0);why does this statement return error value where WCHAR Query[256]; wsprintf(Query,_T("insert into file(FilePath) values('%s')"),dentry->FullPath); why am i getting the error..plz anybody help me

    L M 2 Replies Last reply
    0
    • U User 7860594

      sqlite3_prepare16_v2(dbfile,Query,-1,&statement,0);why does this statement return error value where WCHAR Query[256]; wsprintf(Query,_T("insert into file(FilePath) values('%s')"),dentry->FullPath); why am i getting the error..plz anybody help me

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What error?

      Use the best guess

      1 Reply Last reply
      0
      • U User 7860594

        sqlite3_prepare16_v2(dbfile,Query,-1,&statement,0);why does this statement return error value where WCHAR Query[256]; wsprintf(Query,_T("insert into file(FilePath) values('%s')"),dentry->FullPath); why am i getting the error..plz anybody help me

        M Offline
        M Offline
        Malli_S
        wrote on last edited by
        #3

        What error code does sqlite3_prepare16_v2() is returning? Also check whether you're using sqlite's all the 'V2' interfaces consistently (as I see you using sqlite_prepare16_V2()). For error code details have a look at this[^].

        [Delegates]      [Virtual Desktop]      [Tray Me !]
        -Malli...! :rose:****

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups