Click here to Skip to main content
15,917,580 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHTML Help Pin
Chris Klecker14-Aug-01 8:13
Chris Klecker14-Aug-01 8:13 
GeneralDisk Serial Number Pin
danielk14-Aug-01 7:18
danielk14-Aug-01 7:18 
GeneralRe: Disk Serial Number Pin
Tomasz Sowinski14-Aug-01 7:24
Tomasz Sowinski14-Aug-01 7:24 
QuestionHow to dynamically modify menu in MDI app Pin
JerzyPeter14-Aug-01 6:26
JerzyPeter14-Aug-01 6:26 
AnswerRe: How to dynamically modify menu in MDI app Pin
Not Active14-Aug-01 7:01
mentorNot Active14-Aug-01 7:01 
GeneralRe: How to dynamically modify menu in MDI app Pin
JerzyPeter14-Aug-01 9:39
JerzyPeter14-Aug-01 9:39 
GeneralRe: How to dynamically modify menu in MDI app Pin
Tomasz Sowinski14-Aug-01 9:56
Tomasz Sowinski14-Aug-01 9:56 
GeneralRe: How to dynamically modify menu in MDI app Pin
JerzyPeter14-Aug-01 11:30
JerzyPeter14-Aug-01 11:30 
GeneralRe: How to dynamically modify menu in MDI app Pin
Tomasz Sowinski16-Aug-01 0:54
Tomasz Sowinski16-Aug-01 0:54 
GeneralRe: How to dynamically modify menu in MDI app Pin
JerzyPeter16-Aug-01 9:28
JerzyPeter16-Aug-01 9:28 
GeneralSimple socket problem under WinCE Pin
14-Aug-01 6:17
suss14-Aug-01 6:17 
GeneralHelp! My App crashes and I've no idea why! Pin
14-Aug-01 6:16
suss14-Aug-01 6:16 
GeneralRe: Help! My App crashes and I've no idea why! Pin
Tomasz Sowinski14-Aug-01 7:35
Tomasz Sowinski14-Aug-01 7:35 
GeneralRe: Help! My App crashes and I've no idea why! Pin
14-Aug-01 22:03
suss14-Aug-01 22:03 
GeneralCArchive, Serializing & Schema Pin
Jason Teagle14-Aug-01 5:50
Jason Teagle14-Aug-01 5:50 
I have a situation where I need to serialize several parts of a document-derived class. Because the standard doc loading / saving mechanism is not quite what I need, I have to construct the CArchive manually. All the serialization is working fine in itself, but the one thing I can't seem to get to work now I need it is the schema business.

My doc-derived class uses IMPLEMENT_SERIAL() with the current schema number correctly. I create the archive correctly and then start serializing out (when saving, this is)... but for some reason it never saves the schema in the binary file. I tried SetObjectSchema() immediately after constructing the CArchive, which certainly sets the internal schema value... but that never gets written to file.

I looked at the code for CDocument where it calls our overriden Serialize() to see how it did it - from that I see it sets the archive's m_pDocument and another member. So I did this also... STILL doesn't save the schema in the file.

Since CDocument::Serialize() does not do anything, calling the base class has no effect.

Any clues as to what I'm missing? Otherwise I'll have to do the schema bit myself. But I'd rather use the built-in stuff as much as possible.

GeneralRe: CArchive, Serializing & Schema Pin
Tomasz Sowinski14-Aug-01 6:01
Tomasz Sowinski14-Aug-01 6:01 
GeneralRe: CArchive, Serializing & Schema Pin
Jason Teagle14-Aug-01 6:11
Jason Teagle14-Aug-01 6:11 
GeneralRe: CArchive, Serializing & Schema Pin
Jason Teagle14-Aug-01 6:12
Jason Teagle14-Aug-01 6:12 
GeneralRe: CArchive, Serializing & Schema Pin
Tomasz Sowinski14-Aug-01 6:27
Tomasz Sowinski14-Aug-01 6:27 
GeneralRe: CArchive, Serializing & Schema Pin
Jason Teagle14-Aug-01 6:36
Jason Teagle14-Aug-01 6:36 
GeneralCreateIpForwardEntry Pin
Martijn14-Aug-01 5:46
Martijn14-Aug-01 5:46 
GeneralIHTMLEditHost in combination with CHtmlView Pin
Juergen Woelke14-Aug-01 4:35
Juergen Woelke14-Aug-01 4:35 
GeneralSocket receive performance Pin
sato14-Aug-01 3:51
sato14-Aug-01 3:51 
GeneralSocket receive performance Pin
sato14-Aug-01 3:49
sato14-Aug-01 3:49 
GeneralDockable application needed ! Pin
14-Aug-01 3:39
suss14-Aug-01 3:39 

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.