Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Dockable application needed ! Pin
Paul A. Howes14-Aug-01 4:02
Paul A. Howes14-Aug-01 4:02 
Generaladding binary files Pin
lina14-Aug-01 3:39
lina14-Aug-01 3:39 
GeneralRe: adding binary files Pin
Chris Losinger14-Aug-01 4:03
professionalChris Losinger14-Aug-01 4:03 
GeneralGlobal data problems/can't access variable Pin
14-Aug-01 3:15
suss14-Aug-01 3:15 
GeneralRe: Global data problems/can't access variable Pin
#realJSOP14-Aug-01 3:58
professional#realJSOP14-Aug-01 3:58 
GeneralRe: How to get the pointer to the view Pin
14-Aug-01 21:49
suss14-Aug-01 21:49 
GeneralRe: How to get the pointer to the view Pin
#realJSOP15-Aug-01 1:43
professional#realJSOP15-Aug-01 1:43 

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.