Click here to Skip to main content
15,916,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is the easiest way to do a timer ? Pin
Requiem Sollar8-Feb-06 8:52
Requiem Sollar8-Feb-06 8:52 
QuestionENTER on Button Pin
RadioOpa8-Feb-06 2:31
RadioOpa8-Feb-06 2:31 
AnswerRe: ENTER on Button Pin
Roger Stoltz8-Feb-06 3:03
Roger Stoltz8-Feb-06 3:03 
GeneralRe: ENTER on Button Pin
RadioOpa8-Feb-06 3:33
RadioOpa8-Feb-06 3:33 
QuestionBinary File Question Pin
mcb368-Feb-06 2:13
mcb368-Feb-06 2:13 
AnswerRe: Binary File Question Pin
Cedric Moonen8-Feb-06 2:23
Cedric Moonen8-Feb-06 2:23 
GeneralRe: Binary File Question Pin
mcb368-Feb-06 2:34
mcb368-Feb-06 2:34 
GeneralRe: Binary File Question Pin
Cedric Moonen8-Feb-06 2:43
Cedric Moonen8-Feb-06 2:43 
You need to store the number of instances of all classes that are saved in your file. But in general, the way to save your data is much more cleaner than that. You should take a look at serialization articles on the MSDN. A good way of doing that is to let each object save and load itself. So, if the object is made of several objects, it will save and load these specific objects, each of those are responsible for saving and loading themselves.

But in summary, if you need to save several objects without knowing the exact number (stored in an array for example), then you can simply save, before saving them, the number of elements of that type.
AnswerRe: Binary File Question Pin
kakan8-Feb-06 2:52
professionalkakan8-Feb-06 2:52 
GeneralRe: Binary File Question Pin
mcb368-Feb-06 3:30
mcb368-Feb-06 3:30 
AnswerRe: Binary File Question Pin
Ravi Bhavnani8-Feb-06 11:32
professionalRavi Bhavnani8-Feb-06 11:32 
QuestionDeployment of VC++ Applicaations Pin
Jeeva Mary Varghese8-Feb-06 2:09
Jeeva Mary Varghese8-Feb-06 2:09 
AnswerRe: Deployment of VC++ Applicaations Pin
toxcct8-Feb-06 2:13
toxcct8-Feb-06 2:13 
AnswerRe: Deployment of VC++ Applicaations Pin
Ravi Bhavnani8-Feb-06 11:34
professionalRavi Bhavnani8-Feb-06 11:34 
AnswerRe: Deployment of VC++ Applicaations Pin
ThatsAlok8-Feb-06 18:53
ThatsAlok8-Feb-06 18:53 
QuestionHow to get the letter to a drivename? Pin
ahmet07038-Feb-06 2:02
ahmet07038-Feb-06 2:02 
AnswerRe: How to get the letter to a drivename? Pin
David Crow8-Feb-06 3:49
David Crow8-Feb-06 3:49 
GeneralRe: How to get the letter to a drivename? Pin
Rage8-Feb-06 6:26
professionalRage8-Feb-06 6:26 
GeneralRe: How to get the letter to a drivename? Pin
David Crow8-Feb-06 6:43
David Crow8-Feb-06 6:43 
GeneralRe: How to get the letter to a drivename? Pin
Rage8-Feb-06 6:27
professionalRage8-Feb-06 6:27 
GeneralRe: How to get the letter to a drivename? Pin
ahmet07038-Feb-06 20:33
ahmet07038-Feb-06 20:33 
QuestionScrollView doesn't paint correctly Pin
#realJSOP8-Feb-06 1:57
professional#realJSOP8-Feb-06 1:57 
QuestionAssertion error in OnDraw Pin
Anu_Bala8-Feb-06 0:55
Anu_Bala8-Feb-06 0:55 
AnswerRe: Assertion error in OnDraw Pin
Abebe8-Feb-06 1:20
Abebe8-Feb-06 1:20 
GeneralRe: Assertion error in OnDraw Pin
Anu_Bala8-Feb-06 16:44
Anu_Bala8-Feb-06 16:44 

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.