save and Load parameters!
How can i save and load (Parameters in Edit controls, radio, check boxes). do I have to creat a File and save on it or what??
Thanks!!
[144 byte] By [
Mouni] at [2007-11-18 17:42:56]

# 1 Re: save and Load parameters!
Well...what about storing them in the registry?
# 2 Re: save and Load parameters!
I don't have any Idea about this, kann you give me some helps?
Mouni at 2007-11-11 1:27:07 >

# 3 Re: save and Load parameters!
Either construct your own file format or check out CArchive / serailization.
Regards / Z
zerver at 2007-11-11 1:28:05 >

# 4 Re: save and Load parameters!
To read/write settings from/to registry, check help on:
GetProfileString();
WriteProfileString();
ergas at 2007-11-11 1:29:00 >

# 5 Re: save and Load parameters!
I have a lot of edit boxes and chexk boxes with combobox .
i have read a regestry in win2000 only works for 2 kB.
best Regards!
Mouni at 2007-11-11 1:30:06 >

# 6 Re: save and Load parameters!
Originally posted by Mouni
I don't have any Idea about this, kann you give me some helps?
Take a look at the following FAQs:
How can I access the registry? (http://www.dev-archive.com/forum/showthread.php?s=&threadid=247024)
How can I read data from the registry? (http://www.dev-archive.com/forum/showthread.php?s=&threadid=247020)
How can I write data to the registry? (http://www.dev-archive.com/forum/showthread.php?s=&threadid=247022)
# 7 Re: save and Load parameters!
Originally posted by Mouni
I have a lot of edit boxes and chexk boxes with combobox .
Well...what do you mean with a lot? Depending on that (and the kind of data like strings, numbers etc.), a configuration file might be the better choice indeed...
Originally posted by Mouni
i have read a regestry in win2000 only works for 2 kB.
? Where did you read that?
# 8 Re: save and Load parameters!
I mean i have CFormView Dialog with check boxes, radio and edit controls. many parameters will be changed and i want to save all these and load them for the next sitting., if i open my Dialog.
Thanks!
Mouni at 2007-11-11 1:33:04 >

# 9 Re: save and Load parameters!
[Merged threads]
# 10 Re: save and Load parameters!
Originally posted by Mouni
I mean i have CFormView Dialog with check boxes, radio and edit controls. many parameters will be changed and i want to save all these and load them for the next sitting., if i open my Dialog.
Thanks!
If it's a CFormView, why not add variable to your corresponding document and use serialization.
GCDEF at 2007-11-11 1:35:08 >

# 11 Re: save and Load parameters!
I have no idea about that. Sirialization is to write the parameters in an file or what?
what is better to use registry or File??
Thanks
Mouni at 2007-11-11 1:36:09 >
