Click to See Complete Forum and Search --> : How to save a linked list to the clipboard?


AllenHu
June 19th, 2002, 12:32 AM
In the application A,i have a linked list.I want to save the linked list
to the clipboard so that when A is killed,other applications such as B,C...
can get the linked list through the clipboard.How can i do?
Thanx!

JMS
June 19th, 2002, 12:57 PM
you would have to come up with a formate for the values of the linked list. Then write the values in that formate to the clip board and have the program which reads those values recreate the linked list based on the knowledge of that formate.

linked list

(1)Matt -> (2) Timmy -> (3) Jimmy - (4) Bluto

could be placed into the clip board like this..

Matt;Timmy;Jimmy;Bluto;

Get it?

Bob Davis
June 19th, 2002, 03:21 PM
The clipboard seems to be a bad way to do this, since that is something that is easily destroyed by the user. Why not use a data file at a predetermined location to store common data?