Click here to Skip to main content
15,885,365 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Push button Pin
Roger13-Jul-00 13:39
Roger13-Jul-00 13:39 
GeneralRe: Push button Pin
Roger14-Jul-00 2:45
Roger14-Jul-00 2:45 
GeneralRe: Push button Pin
Erik Thompson14-Jul-00 8:01
sitebuilderErik Thompson14-Jul-00 8:01 
GeneralProperty pages dinamic creation (setting a different title for each one) Pin
Joan Murt12-Jul-00 7:18
sussJoan Murt12-Jul-00 7:18 
Generallooking for a control is in a window Pin
nhquoc12-Jul-00 0:26
nhquoc12-Jul-00 0:26 
GeneralRe: looking for a control is in a window Pin
Paolo Messina14-Jul-00 2:47
professionalPaolo Messina14-Jul-00 2:47 
QuestionDoes anybody can explian how the object are serialized to storeage? Pin
Member 291111-Jul-00 19:51
Member 291111-Jul-00 19:51 
AnswerRe: Does anybody can explian how the object are serialized to storeage? Pin
Dave Lorde19-Jul-00 13:57
Dave Lorde19-Jul-00 13:57 
When an object is serialized, it means it is converted to a stream of data that can be stored in persistent storage, or sent across a communications channel, then reconstituted into an object at a later time.

This is usually done by writing out a code for the object type followed by the data stored in its data members, one by one. Data members that are basic types (such as char, int, long, etc.) can be streamed out just by writing their bits to the output. Data members that are user defined types (such as other objects) are told to serialize themselves, and they repeat the process, serializing their own data members, until the whole object has been serialized to the output stream as a sequence of basic types.

Data members that are pointers or references to external objects must be handled differently so that only one copy of the external object is serialized. There are various ways of doing this, depending on the library in use. Some implementations give each object that is pointed to a unique ID, and output this ID for each pointer. When the objects are reconstituted, the pointers are replaced by the address of the reconstituted external object.

Reconstituting objects from the serialized stream is the reverse of serialization. The object type is read in, and an empty object of that type is constructed. Each data serialized member is then read in turn and assigned to the new object's corresponding data member.

Note that this system requires that full details of the serialization system and the object types are available for both serializing and reconstituting the objects. Also, a default constructor (taking no arguments) is usually required when objects are reconstituted.

Dave
Generalautodecting proxy settings Pin
David Cecil11-Jul-00 19:49
David Cecil11-Jul-00 19:49 
GeneralRe: autodecting proxy settings Pin
Daniel Fiske17-Jul-00 1:19
Daniel Fiske17-Jul-00 1:19 
GeneralStatic. c++ Pin
Leon Zhang11-Jul-00 16:45
Leon Zhang11-Jul-00 16:45 
GeneralRe: Static. c++ Pin
Mike Dunn11-Jul-00 17:55
Mike Dunn11-Jul-00 17:55 
GeneralRe: Static. c++ Pin
Member 112720-Jul-00 6:12
Member 112720-Jul-00 6:12 
GeneralRe: Static. c++ Pin
pba_13-Jul-00 5:51
pba_13-Jul-00 5:51 
GeneralMDI with multiple DOC types (The view for one of them must be an assistant) Pin
Joan Murt11-Jul-00 8:38
sussJoan Murt11-Jul-00 8:38 
GeneralRe: MDI with multiple DOC types (The view for one of them must be an assistant) Pin
Joan Murt17-Jul-00 14:21
sussJoan Murt17-Jul-00 14:21 
QuestionHow can I detect if any sound is currently playing? Pin
Phil11-Jul-00 8:06
Phil11-Jul-00 8:06 
GeneralSocket problem Pin
Ganendran11-Jul-00 6:00
Ganendran11-Jul-00 6:00 
Generalbrowse for folder Pin
Member 403211-Jul-00 4:53
Member 403211-Jul-00 4:53 
GeneralRe: browse for folder Pin
Paolo Messina14-Jul-00 2:42
professionalPaolo Messina14-Jul-00 2:42 
GeneralMFC Socket problem in Windows2000 environment Pin
Ganendran10-Jul-00 12:03
Ganendran10-Jul-00 12:03 
General(Newbie) Help with doc/view Pin
Peter10-Jul-00 12:01
Peter10-Jul-00 12:01 
GeneralRe: (Newbie) Help with doc/view Pin
pba_13-Jul-00 5:47
pba_13-Jul-00 5:47 
QuestionMake copy of DIBSection ? Pin
Christian8-Jul-00 3:23
Christian8-Jul-00 3:23 
GeneralPrinting Dialog Box Pin
etoth17-Jul-00 12:31
etoth17-Jul-00 12:31 

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.