Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionis it possible ?....if so how? Pin
namaskaaram11-Apr-05 18:31
namaskaaram11-Apr-05 18:31 
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 
OH! I'm stuck!

I have no idea what to do !!!

I created a dialog based application (as a matter of fact, my first REAL application).

from the main window I created another option window, over there the user can change the variables (just strings...) to custom his work.

the thing is that when the user will close the application all of his settings in the option window, obviously, will be deleted!

now, what I want to do is to let the user somehow the ability to save his
settings (the variables), and load them into a default file(for the example: "settings.dat" (without using an "open/save file" dialog from the CFileDialog class). in my quest to find the answer I read about serialization, but it really didn't do the job very well... I kept on getting errors and stuff (even by only declaring serialize in COption)

so my plan is: in the OnInit I will check IF the "settings.dat" exist (and I don't really know how to do that), if not, it will be created with default settings (I guess that is just saving, and by that the file will be created),
and if it does exist, it will be loaded.

and in the option window, using:
if(clsOption.DoModal() == IDOK)
in the main dialog, I will save the settings of the options.

so if all I wrote in the above is not a complete bullshit (sorry for the language), technically what I don't know what to do is how to check if the "settings.dat" exists or not, and HOW DO I SAVE AND LOAD???

I know these are big questions, but at least some clue.
I'm REALLY STUCK! Frown | :(

THANKS EVERYBODY!!! Smile | :)
GeneralRe: save/load variables in a dialog Pin
Nick Z.11-Apr-05 18:31
Nick Z.11-Apr-05 18:31 
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 

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.