Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "%1" %* Pin
Larsson5-Jul-04 6:47
Larsson5-Jul-04 6:47 
GeneralRe: "%1" %* Pin
Maximilien5-Jul-04 7:09
Maximilien5-Jul-04 7:09 
GeneralRe: "%1" %* Pin
Larsson5-Jul-04 7:12
Larsson5-Jul-04 7:12 
GeneralRe: "%1" %* Pin
Cobra4Ever5-Jul-04 13:43
Cobra4Ever5-Jul-04 13:43 
GeneralRe: "%1" %* Pin
Larsson6-Jul-04 2:53
Larsson6-Jul-04 2:53 
GeneralRe: "%1" %* Pin
Roger Allen6-Jul-04 4:32
Roger Allen6-Jul-04 4:32 
GeneralLR_DEFAULTSIZE|LR_LOADFROMFILE in WinCE Pin
Anonymous5-Jul-04 5:20
Anonymous5-Jul-04 5:20 
GeneralProgram Settings Pin
sweep1235-Jul-04 5:13
sweep1235-Jul-04 5:13 
I have created a structure to hold all the GUI settings that the program current state is in; i.e. check boxes, text filed entries, button states.

Now I want to save the file as Save Settings...

I have been using the CFileDialog to speficy a save file and also using a CFile to create and open a file.

I did try and use iostream but got in a mess with deprecated warning and namespace problems.

extern void _OLD_IOSTREAMS_ARE_DEPRECATED();
c:\SSIC_Example\SSIC_ExampleDlg.cpp(768): error C2065: 'ofstream' : undeclared identifier


What is the simplest way to save these settings and load them when the user selects to Load Project...

But I got in another mess with trying to open an already open file with Cfile.

I am using Visual Studio .Net 2002.
GeneralRe: Program Settings Pin
blah2blah5-Jul-04 5:43
blah2blah5-Jul-04 5:43 
GeneralRe: Program Settings Pin
Jaime Stuardo5-Jul-04 5:51
Jaime Stuardo5-Jul-04 5:51 
GeneralRe: Program Settings Pin
sweep1235-Jul-04 6:05
sweep1235-Jul-04 6:05 
GeneralRe: Program Settings Pin
sweep1235-Jul-04 6:49
sweep1235-Jul-04 6:49 
GeneralMaking multi-parameter function Pin
Gian5-Jul-04 4:42
Gian5-Jul-04 4:42 
GeneralRe: Making multi-parameter function Pin
Michael Dunn5-Jul-04 5:03
sitebuilderMichael Dunn5-Jul-04 5:03 
GeneralVC 2003 and crystal reports Pin
Irish_GUI5-Jul-04 4:37
Irish_GUI5-Jul-04 4:37 
GeneralRe: VC 2003 and crystal reports Pin
Michael P Butler5-Jul-04 10:13
Michael P Butler5-Jul-04 10:13 
GeneralDisplaying multiple image overlays in MFC tree or list control Pin
Anonymous5-Jul-04 4:02
Anonymous5-Jul-04 4:02 
GeneralStatic control fonts Pin
si_695-Jul-04 3:29
si_695-Jul-04 3:29 
GeneralRe: Static control fonts Pin
Stlan5-Jul-04 3:40
Stlan5-Jul-04 3:40 
GeneralRe: Static control fonts Pin
Jaime Stuardo5-Jul-04 3:43
Jaime Stuardo5-Jul-04 3:43 
GeneralRe: Static control fonts Pin
Roger Allen5-Jul-04 3:44
Roger Allen5-Jul-04 3:44 
GeneralRe: Static control fonts Pin
Michael P Butler5-Jul-04 4:22
Michael P Butler5-Jul-04 4:22 
GeneralAbut media player Pin
Anonymous5-Jul-04 1:21
Anonymous5-Jul-04 1:21 
GeneralTo Find row & column Pin
Pazzuzu5-Jul-04 1:10
Pazzuzu5-Jul-04 1:10 
GeneralRe: To Find row & column Pin
Jaime Stuardo5-Jul-04 3:37
Jaime Stuardo5-Jul-04 3:37 

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.