Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Serialize()

Status
Not open for further replies.

timmay3141

Programmer
Dec 3, 2002
468
US
I'm trying to use the MFC function Serialize() to save a document. I've never used it before, and am having some trouble. I did a simple test run and understand the basic concepts, but I'm trying to save a linked list, so it gets a littly sticky and I'm trying to fix a problem with it. Is there any easy way to do the debugging, like looking at the file and seeing exactly what was output? I want to make sure everything is output correctly.
 
well you can open the file with the IDE in "binary" mode and see it in the HEX editor if that helps.

i don't really understand what your asking for, can you clarify your question?

-pete
 
Well, using the C++ class fstream, I could do something like this:

fstream file("c:\\myfile.txt, ios::read | ios::write);
double a = 5, b = 3;
file << a << endl << b << endl;

I could then open up myfile.txt using Windows Explorer and look to see what had been output, just to make sure it output what I expected it to. My question is, can I open the file created using Serialize() and look at the values that it output, or does it not put them in any format I could read?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top