Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have an app that must Serialize through a document pointer rather than a document?
How can I effect this?
Posted
Comments
Sergey Alexandrovich Kryukov 9-Feb-14 19:19pm    
Not clear at all. What serialization do you have in mind? Why kind of document (and why would it need serialization)? What difference can it possibly make? Pointer is just the access to data...
—SA
Gbenbam 10-Feb-14 0:13am    
I am talking about MFC document/view architecture.

1 solution

Sure. If you have a document object, then doc.serialize(). If you have a pointer to a document object, then doc->serialize(). Change var names and APIs accordingly...
 
Share this answer
 
Comments
Gbenbam 10-Feb-14 0:22am    
That makes all the sense in d world.But it is the framework that calls serialize on document object.All I do is write its override.An override cannot change the parameter format of a virtual function.
Perhaps my question should be which function do I override in order to be able to serialize a document through a pointer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900