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

  • Home
  • SEARCH
  • 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 211817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:07:47+00:00 2026-05-11T18:07:47+00:00

I have an MFC app which is wizard based. The App asks a user

  • 0

I have an MFC app which is wizard based. The App asks a user a variable number of questions which are then written to an INI file which is later encrypted when the user clicks Finish.

All the INI file parsers I have seen so far seen read or write to a physical file on Disk. I don’t want to do this as the INI file contains confidential information. Instead I would like the INI file to be only based in memory and never written to disk in an un-encrypted form.

As the app allows users to go back and change answers, It occurred to me that I could use an in memory Database for this purpose but again I do not want anything written to Disk and don’t want to ship a DB with my app if it can be avoided.

I have to use an INI file as it the file when un-encrypted will be processed by a 3rd party.

Any suggestions welcomed.

Thanks..

  • 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-11T18:07:47+00:00Added an answer on May 11, 2026 at 6:07 pm

    I have an IniFile C++ class which allows you to work with Ini files in memory:
    http://www.lemonteam.com/downloads/inifile.h

    It’s a short, well documented single .h file. Sample usage:

    IniFile if ( "myinifile.ini" );
    
    if.SetString( "mykey", "myvalue" );
    
    
    // Nothing gets actually written to disk until you call Flush(), Close() or the object is deleted
    if.Flush();
    if.Close();
    

    You should be able to modify the Flush() method so that it applies some kind of encryption to the saved data.

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

Sidebar

Related Questions

I have an MFC app which I have been working on for a few
I have an MFC sdi app that uses a splitter window to contain a
I have an MFC legacy app that I help to maintain. I'm not quite
I have a C++/MFC app on windows - dynamically linked it's only 60kb static
We have a monolithic MFC GUI app that is nearing the end of it's
We have multiple MFC apps, which use CMutex( false, blah ), where blah allows
We have a several large MFC applications which presently call a COM object to
I have an MFC application compiled with /clr and I'm trying to implement a
I have CLI/MFC application and I would like to begin to learn how to
I have a MFC dialog with 32 CComboBoxes on it that all have the

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.