Click here to Skip to main content
15,905,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to write data to a file when it is in a vector Pin
Garth J Lancaster30-Dec-05 15:34
professionalGarth J Lancaster30-Dec-05 15:34 
GeneralRe: How to write data to a file when it is in a vector Pin
Larry Mills Sr1-Jan-06 16:45
Larry Mills Sr1-Jan-06 16:45 
GeneralRe: How to write data to a file when it is in a vector Pin
Garth J Lancaster1-Jan-06 19:34
professionalGarth J Lancaster1-Jan-06 19:34 
QuestionNeed Help with ShellExecute Pin
Klerik8230-Dec-05 10:53
Klerik8230-Dec-05 10:53 
AnswerRe: Need Help with ShellExecute Pin
Prakash Nadar30-Dec-05 18:14
Prakash Nadar30-Dec-05 18:14 
AnswerRe: Need Help with ShellExecute Pin
Michael Dunn31-Dec-05 10:50
sitebuilderMichael Dunn31-Dec-05 10:50 
AnswerRe: Need Help with ShellExecute Pin
Klerik822-Jan-06 13:03
Klerik822-Jan-06 13:03 
QuestionMFC Serialization Questions.. Pin
montiee30-Dec-05 6:09
montiee30-Dec-05 6:09 
I'm sure the answer is obvious but I can't seem to work it out.
I have a created a class (called Cemu) which is tagged as serializable via MFC's macros. Now in Cemu there consist a couple of CString's which I want to serialize. To complicate matters I have a list of Cemu entries stored in CemuList. What I have done when I want to dump the list to the file is loop through CemuList and call the serialize() method I created in Cemu which in turn writes out the CStrings I want to a file. That process seems to work just fine by examining the file afterwards. What I'm have trouble with is de-serializing. My initial stab at it is below but that doesn't work.

while (file.GetPosition() < file.GetLength()) {
client = new Cemu;
client->Serialize(archive);
CemulList.AddTail(*client);
}

The file containing the data has 2 Cemu serialised entries and what I'm finding is that only one gets read in. My interpretation was that the act of serializing the Cemu would move the file pointer along correctly, ie a total of 2 times but I'm missing something. Can point me in the right direction?

Cheers!
AnswerRe: MFC Serialization Questions.. Pin
Ravi Bhavnani30-Dec-05 6:59
professionalRavi Bhavnani30-Dec-05 6:59 
GeneralRe: MFC Serialization Questions.. Pin
Garth J Lancaster30-Dec-05 15:35
professionalGarth J Lancaster30-Dec-05 15:35 
GeneralRe: MFC Serialization Questions.. Pin
montiee30-Dec-05 16:54
montiee30-Dec-05 16:54 
GeneralRe: MFC Serialization Questions.. Pin
Ravi Bhavnani31-Dec-05 5:14
professionalRavi Bhavnani31-Dec-05 5:14 
AnswerRe: MFC Serialization Questions.. Pin
ToxickZero30-Dec-05 9:34
ToxickZero30-Dec-05 9:34 
GeneralRe: MFC Serialization Questions.. Pin
montiee30-Dec-05 17:04
montiee30-Dec-05 17:04 
AnswerRe: MFC Serialization Questions.. Pin
Cliff Hatch1-Jan-06 0:53
Cliff Hatch1-Jan-06 0:53 
GeneralRe: MFC Serialization Questions.. Pin
Cliff Hatch2-Jan-06 0:54
Cliff Hatch2-Jan-06 0:54 
QuestionHow to resize child window Pin
shivditya30-Dec-05 5:24
shivditya30-Dec-05 5:24 
AnswerRe: How to resize child window Pin
John R. Shaw31-Dec-05 18:55
John R. Shaw31-Dec-05 18:55 
Questionfile transfer time prblm Pin
Orell30-Dec-05 2:24
Orell30-Dec-05 2:24 
AnswerRe: file transfer time prblm Pin
Prakash Nadar30-Dec-05 5:14
Prakash Nadar30-Dec-05 5:14 
QuestionHow to check the config Pin
nripun30-Dec-05 2:11
nripun30-Dec-05 2:11 
AnswerRe: How to check the config Pin
sunit530-Dec-05 2:28
sunit530-Dec-05 2:28 
GeneralRe: How to check the config Pin
sunit530-Dec-05 2:33
sunit530-Dec-05 2:33 
GeneralRe: How to check the config Pin
nripun30-Dec-05 2:41
nripun30-Dec-05 2:41 
GeneralRe: How to check the config Pin
sunit530-Dec-05 2:58
sunit530-Dec-05 2:58 

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.