Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serialization ????
Message
From
19/05/2001 01:51:12
 
 
To
All
General information
Forum:
Visual C++
Category:
Microsoft Foundation Classes
Title:
Serialization ????
Miscellaneous
Thread ID:
00509053
Message ID:
00509053
Views:
46
As practice problem I'm trying to make a notepad like application.
The SDI application is created by the wizard,but I created the editbox
in the View's onInitialUpdate() function using Create() function.
If user resizes the window,the Editbox is resized in the View's
OnDraw() function.
Now the problem is how I save the text in a file using the serialize()
function of the Document Class.
What I tried is, I included the View's header file in Document's header
file,in the Serialize() function I created the View Object then using
the View Object accessed the editbox's pointer (which was used to create the
editbox in view).With this pointer I called the GetWindowText() and
SetWindowText() functions to fetch the editbox's text.After that I
passed that to the Archive objects insertion and extraction operators,
but I get error stating 'memory could not be read'.
Next
Reply
Map
View

Click here to load this message in the networking platform