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. Database & SysAdmin
  3. Database
  4. Using SQLite in C++ and C#

Using SQLite in C++ and C#

Scheduled Pinned Locked Moved Database
csharpc++databasesqlitejson
2 Posts 2 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.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    First, I no nothing at all about C++... We need to use SQLite for cross platform compatibility. We would like to have one copy of DB code in C++ and somehow make requests/ send command into it from C#. One possibility is to have the C++ portion send/receive its data from C# as JSON. In C# I can easily convert the JSON to C# objects and vice versa. Anyone done this? Any tips/advice/pointers? Thanks

    If it's not broken, fix it until it is

    P 1 Reply Last reply
    0
    • K Kevin Marois

      First, I no nothing at all about C++... We need to use SQLite for cross platform compatibility. We would like to have one copy of DB code in C++ and somehow make requests/ send command into it from C#. One possibility is to have the C++ portion send/receive its data from C# as JSON. In C# I can easily convert the JSON to C# objects and vice versa. Anyone done this? Any tips/advice/pointers? Thanks

      If it's not broken, fix it until it is

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      OK. Or C# can call a C++ DLL with P/Invoke?

      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