Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load order of implicitly linked DLLs Pin
Chris Meech6-Aug-03 3:15
Chris Meech6-Aug-03 3:15 
GeneralRe: Load order of implicitly linked DLLs Pin
JT Anderson6-Aug-03 11:26
JT Anderson6-Aug-03 11:26 
GeneralMultiple file selection in Windows API Pin
Kayembi6-Aug-03 1:24
Kayembi6-Aug-03 1:24 
GeneralRe: Multiple file selection in Windows API Pin
David Crow6-Aug-03 3:09
David Crow6-Aug-03 3:09 
GeneralRe: Multiple file selection in Windows API Pin
Kayembi6-Aug-03 4:01
Kayembi6-Aug-03 4:01 
GeneralRe: Multiple file selection in Windows API Pin
David Crow6-Aug-03 4:23
David Crow6-Aug-03 4:23 
GeneralRe: Multiple file selection in Windows API Pin
Kayembi6-Aug-03 5:01
Kayembi6-Aug-03 5:01 
GeneralSaving/creating and Loading files Pin
Kayembi6-Aug-03 1:06
Kayembi6-Aug-03 1:06 
Hi,

This is probably going to seem a very dumb and easy question to many (I hope!), but I am a novice with C++ so please bear with me...

I have an application that saves certain settings to file, and loads them on opening. All of these settings are just simple strings and integers, so at the moment I just save them to a (renamed) INI file using WritePrivateProfileString() and load them using GetPrivateProfileString() and GetPrivateProfileInt(). However, using these instructions means that anyone using my program can open the INI file in a text editor and look at the stored information. Ideally, I would like to create saved files that can't be opened in a text editor.

Could anybody tell me how to do this, please? (I am using the Windows API but *not* using MFC.) If somebody could show me a function (or tell me where to look) that creates a save file, and then can save strings and integers to it, and also a function on how I would then read the information back (load it), I would be very grateful. (One advantage with using the PrivateProfile functions is that I can read whatever value I want arbitrarily without having to load the info of the whole fle - can this functionality be maintained in a custom file?)

Many thanks,
KB
GeneralRe: Saving/creating and Loading files Pin
Dangleberry6-Aug-03 1:16
sussDangleberry6-Aug-03 1:16 
GeneralRe: Saving/creating and Loading files Pin
lawrence20006-Aug-03 3:13
lawrence20006-Aug-03 3:13 
GeneralRe: Saving/creating and Loading files Pin
David Crow6-Aug-03 3:19
David Crow6-Aug-03 3:19 
GeneralRe: Saving/creating and Loading files Pin
Kayembi6-Aug-03 4:06
Kayembi6-Aug-03 4:06 
GeneralRe: Saving/creating and Loading files Pin
David Crow6-Aug-03 4:18
David Crow6-Aug-03 4:18 
GeneralRe: Saving/creating and Loading files Pin
Kayembi6-Aug-03 4:45
Kayembi6-Aug-03 4:45 
GeneralRe: Saving/creating and Loading files Pin
David Crow6-Aug-03 4:57
David Crow6-Aug-03 4:57 
GeneralRe: Saving/creating and Loading files Pin
Kayembi6-Aug-03 5:27
Kayembi6-Aug-03 5:27 
GeneralTimer Callback Pin
LittleYellowBird6-Aug-03 0:31
LittleYellowBird6-Aug-03 0:31 
GeneralRe: Timer Callback Pin
Member 4242596-Aug-03 0:41
Member 4242596-Aug-03 0:41 
GeneralRe: Timer Callback Pin
Member 4242596-Aug-03 0:42
Member 4242596-Aug-03 0:42 
GeneralRe: Timer Callback Pin
LittleYellowBird6-Aug-03 1:12
LittleYellowBird6-Aug-03 1:12 
GeneralRe: Timer Callback Pin
ivor bigun6-Aug-03 0:58
ivor bigun6-Aug-03 0:58 
GeneralRe: Timer Callback Pin
LittleYellowBird6-Aug-03 1:09
LittleYellowBird6-Aug-03 1:09 
GeneralRe: Timer Callback Pin
ivor bigun6-Aug-03 1:08
ivor bigun6-Aug-03 1:08 
GeneralRe: Timer Callback Pin
Ryan Binns6-Aug-03 1:11
Ryan Binns6-Aug-03 1:11 
GeneralRe: Timer Callback Pin
ivor bigun6-Aug-03 1:31
ivor bigun6-Aug-03 1:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.