CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    7

    How to save a linked list to the clipboard?

    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!

  2. #2
    Join Date
    May 2000
    Location
    Washington DC, USA
    Posts
    715
    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?

  3. #3
    Join Date
    Jan 2001
    Posts
    588
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured