Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: is it possible ?....if so how? Pin
Jack Puppy11-Apr-05 19:19
Jack Puppy11-Apr-05 19:19 
AnswerRe: is it possible ?....if so how? Pin
Christian Graus11-Apr-05 19:22
protectorChristian Graus11-Apr-05 19:22 
QuestionIs there any reason why we would want to use memcpy() instead of memmove()? Pin
Link260011-Apr-05 15:33
Link260011-Apr-05 15:33 
AnswerRe: Is there any reason why we would want to use memcpy() instead of memmove()? Pin
Jack Puppy11-Apr-05 17:17
Jack Puppy11-Apr-05 17:17 
GeneralRe: Is there any reason why we would want to use memcpy() instead of memmove()? Pin
Link260011-Apr-05 17:38
Link260011-Apr-05 17:38 
AnswerRe: Is there any reason why we would want to use memcpy() instead of memmove()? Pin
Ryan Binns11-Apr-05 17:57
Ryan Binns11-Apr-05 17:57 
Generalsave/load variables in a dialog Pin
Green Fuze11-Apr-05 15:33
Green Fuze11-Apr-05 15:33 
GeneralRe: save/load variables in a dialog Pin
Nick Z.11-Apr-05 18:31
Nick Z.11-Apr-05 18:31 
For lots of different settings, you should use serialization, xml, registry, or something else.
However, in your case, I think you probably just want to save and load a few settings and you are probably just starting the whole GUI business (thats what I understand you mean by "REAL application" Wink | ;) ). In that case I would use simple text based input/output to a text file, separating the different settings by some kind of delimeter (ie. a comma, a semi-column, or something like ;mysupercustomdelimiter). When you save to a text file settings.dat for ex., you separate all your settings by a comma. When you load you look for a comma and separate them into different settings. For actual text input/output you could use fstream's (ifstream/ofstream) I think.

This is not a very good solution in general, but it is probably enough to get you rolling.
If somebody feels this is a terrible advice, feel free to correct me and point out a better, SIMPLE way of storing settings.

Get used to getting stuck! Big Grin | :-D It happens on daily basis when programming, at least to me. Laugh | :laugh:
GeneralRe: save/load variables in a dialog Pin
Green Fuze12-Apr-05 0:35
Green Fuze12-Apr-05 0:35 
GeneralRe: save/load variables in a dialog Pin
ThatsAlok11-Apr-05 20:35
ThatsAlok11-Apr-05 20:35 
GeneralRe: save/load variables in a dialog Pin
Green Fuze12-Apr-05 2:55
Green Fuze12-Apr-05 2:55 
GeneralThread synchronization. Pin
Nick Z.11-Apr-05 13:50
Nick Z.11-Apr-05 13:50 
GeneralRe: Thread synchronization. Pin
Ryan Binns11-Apr-05 17:59
Ryan Binns11-Apr-05 17:59 
GeneralRe: Thread synchronization. Pin
Nick Z.11-Apr-05 18:09
Nick Z.11-Apr-05 18:09 
GeneralRe: Thread synchronization. Pin
markkuk12-Apr-05 0:23
markkuk12-Apr-05 0:23 
GeneralRe: Thread synchronization. Pin
Jack Puppy11-Apr-05 18:00
Jack Puppy11-Apr-05 18:00 
GeneralRe: Thread synchronization. Pin
Nick Z.11-Apr-05 18:12
Nick Z.11-Apr-05 18:12 
GeneralUNICODE COMPILATION ReplaceSel usage for char array. Pin
kristna11-Apr-05 11:19
kristna11-Apr-05 11:19 
GeneralRe: UNICODE COMPILATION ReplaceSel usage for char array. Pin
Graham Bradshaw11-Apr-05 12:05
Graham Bradshaw11-Apr-05 12:05 
GeneralRe: UNICODE COMPILATION ReplaceSel usage for char array. Pin
kristna11-Apr-05 22:55
kristna11-Apr-05 22:55 
GeneralMFC Worker Thread Problem Pin
CNewbie11-Apr-05 11:00
CNewbie11-Apr-05 11:00 
GeneralRe: MFC Worker Thread Problem Pin
Orkun GEDiK11-Apr-05 11:50
Orkun GEDiK11-Apr-05 11:50 
GeneralRe: MFC Worker Thread Problem Pin
CNewbie11-Apr-05 11:56
CNewbie11-Apr-05 11:56 
GeneralRe: MFC Worker Thread Problem Pin
Blake Miller11-Apr-05 12:33
Blake Miller11-Apr-05 12:33 
GeneralRe: MFC Worker Thread Problem Pin
toxcct11-Apr-05 20:55
toxcct11-Apr-05 20:55 

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.