locked
Connect C++ UWP App with SQLite database RRS feed

  • Question

  • Hi,

    I tried following this link in order to connect my UWP app with SQLite database.

    https://msdn.microsoft.com/en-us/windows/uwp/data-access/sqlite-databases

    But even after following the link I am facing issues. I downloaded SQLite package using Nuget but Sqlite3.h file is not found by the solution.

    Thanks,

    /vikas

    Thursday, July 28, 2016 2:54 AM

Answers

  • Hello Vikas,

    Thank you for posting here!

    You can check your SQLite extension is installed successfully as below,

    Open the Visual Studio menu: Tools -> Extension & Updates. If it is successfully installed, it should be listed under "Installed -> SDKs" as "SQLite for Universal App Platform"

    Then you can try to add the Sqlite UAP extension as a reference to your project. In Solution Explorer, expand your project's node, right click on 'References', then hit 'Add Reference...'. Click 'Extensions' under 'Universal Windows', check the box next to 'Sqlite for Universal App Platform', then hit 'OK'.

    I have found a discussion regarding the same. Please try the suggestions given in this link, https://github.com/Microsoft/WinObjC/issues/309

    Hope this helps.

    Regards,

    Swikruti

    If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.
    • Marked as answer by Vikas-Gomia Thursday, July 28, 2016 3:40 PM
    Thursday, July 28, 2016 3:08 PM

All replies

  • Hello Vikas,

    Thank you for posting here!

    You can check your SQLite extension is installed successfully as below,

    Open the Visual Studio menu: Tools -> Extension & Updates. If it is successfully installed, it should be listed under "Installed -> SDKs" as "SQLite for Universal App Platform"

    Then you can try to add the Sqlite UAP extension as a reference to your project. In Solution Explorer, expand your project's node, right click on 'References', then hit 'Add Reference...'. Click 'Extensions' under 'Universal Windows', check the box next to 'Sqlite for Universal App Platform', then hit 'OK'.

    I have found a discussion regarding the same. Please try the suggestions given in this link, https://github.com/Microsoft/WinObjC/issues/309

    Hope this helps.

    Regards,

    Swikruti

    If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.
    • Marked as answer by Vikas-Gomia Thursday, July 28, 2016 3:40 PM
    Thursday, July 28, 2016 3:08 PM
  • Hi,

    I am able to resolve the file not found issue. It was mainly due to the reason that I didn't added reference for SQLite package.

    Thanks,

    /vikas

    Thursday, July 28, 2016 3:40 PM
  • Hello Vikas,

    Glad to know that, your issue has been resolved.

    Thank you so much for your information, which might help other customers to resolve their issue related to the same query.

    Regards,

    Swikruti

    Thursday, July 28, 2016 3:56 PM