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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:59:30+00:00 2026-05-30T13:59:30+00:00

I want to use SQLite as a database for my C++ project. I also

  • 0

I want to use SQLite as a database for my C++ project. I also need the ability to password protect the database. I got the standard SQLite from SQLite.org working – but I need to password/encrypt the database and they don’t do that – they just stub the interface for it to be done with

SQLITE_API int sqlite3_key( sqlite3 *db, const void *pKey, int nKey);

After researching on the web how to do this, I came across System.Data.SQLite. It claims to do all I need quite easily, but I need to do it from unmanaged C++ project in Visual Studio 2008. I tried their project – but I can’t get my unmanaged C++ project to allow the DLL to work – it squawks about dll not being safe/clr:safe compile – which I can’t set in the System.Data.SQLite project and compile.

Can anyone help me with this or point me to a good resource on how to do this? I have been thrown into a C++ project (hadn’t touched C/C++ since college (97-98), so I am really struggling with this when it comes to the linker/libs/modules. Java and .NET have spoiled me!

Thanks,
Mike

  • 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-30T13:59:31+00:00Added an answer on May 30, 2026 at 1:59 pm

    You can’t use a managed DLL from unmanaged code like that, they’re different systems. Just use the normal unmanaged SQLite build and read the docs on how to use keys.

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

Sidebar

Related Questions

Today I use SQLite and send a database-file with the project. However I want
The project I'm working on required me to use a sqlite database, and I've
I want to use SQLite database which is on FTP server without downloading it.
I am currently using Persistent Storage in BlackBerry. I want to use SqLite Database
I have a pre-baked sqlite database that I want to use in my Android
I want to make a list contains some username from my sqlite database. I
As part of a BlackBerry project I'm working on I need the ability to
I have already created an SQLite database. I want to use this database file
In my iPhone project,I use Odata Service to get data from SQL Server database
I want to use SQLite within my MFC application. for that, i'll create an

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.