Back up creation

In C++, I have drawn a line graph that indicates the travel pattern of a vehicle..(I did that in graphics mode)..

I would like to take a back up of this graph(the points in the graph) in a floppy.

Is there any way to save the contents of the graph which I have drawn?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

programatically, I presume, or would a screen dump be acceptable?

Do you want to save this from your program in order to be able to reload it? or do you want to give the floppy to friend who can then printthe graph?
If your graph is made of only lines,you can save their points into a array,and save the array into a file.
The document's Serialize function can help you to save and reload the lines.
You can get the points in OnMouseMove function.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aprajithaAuthor Commented:
I need more explaination on the same as to how should i proceed.

Also, Clarifiying with grahams comments, I should be able to reload the graph as well as to store the details in a floppy for others use
How do you draw lines?If you do it by mouse,you should do like this:

In your OnMouseMove() function,you can detect whether your mouse is down.If so,you must store the points into a array,which indicate a line.If not so,the user is not drawing line,but moving the mouse.That is to say,one array is for one line.

In your document's Serialize() function,you should call the array's Serialize() function.So the array can be stored into a file,and the file can be load to form arrays.You can find these infomation in MSDN.Just key "Serialize","CArray".

When the points are in a array.You can line 2 neighbour points,then a line is formed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.