What is CArchive class dowes?
Answers were Sorted based on User's Feedback
Answer / songeetha
CArchive is a temporary buffer area for handling datas
between CMap and CFile. The datas from the user are first
entered in CMap and then from this CMap, they are stored to
CFile through CArchive Class, while closing the application.
When opening the application the datas from CFile are
loaded into CMap through CArchive.
At first CFile should be opened or created before creating
instance for CArchive. After transferring of datas between
CMap and CArchive, CArchive instance should be closed first
before closing the CFile. The vice-versa action will
results in crashing of application.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sonali d
CArchive is used with serilization.Serilization is nothing
but technique to save an application persistent data to
disk or read it to back.this is done through CArchive which
uses CFile function to perform I/O.
MFC oveload << and >> operator used with CArchive to make
serilizing data to or from CArchive simple
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / krishna akkulu
CArchive does not have a base class.archive object as a
kind of binary stream
You must create a CFile object before you can create a
CArchive object.
When you construct a CArchive object, you attach it to an
object of class CFile (or a derived class) that represents
an open file.
CArchive also supports programming with the MFC Windows
Sockets classes CSocket and CSocketFile. The IsBufferEmpty
member function supports that usage.
| Is This Answer Correct ? | 2 Yes | 1 No |
CArchive does not have a base class.
Later you can load the objects from persistent storage, reconstituting them in memory. This process of making data persistent is called "serialization."
You can think of an archive object as a kind of binary stream. Like an input/output stream, an archive is associated with a file and permits the buffered writing and reading of data to and from storage. An input/output stream processes sequences of ASCII characters, but an archive processes binary object data in an efficient, nonredundant format.
You must create a CFile object before you can create a CArchive object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
In VC++ How to transfer between one exe to another exe while running..
What is the use of OninitDialog ?
What are the differences between MFC Exception macros and C++ exception keywords?
What function is used to retrieve the currently selected index in a list box?
Difference between Cclint DC & Cpaint Dc
Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer
how can u change button shape at run time
Whats is DDX & DDV in MFC?
What?s the difference between Modal and Modeless Dialog?
What is the range of intensity of RGB