by_library/windows_clipboard/clipboard_format_sequence/clipboard_format_sequence.cpp

[C++ only] Illustrates use of the Windows Clipboard library class clipboard_format_sequence.

/* /////////////////////////////////////////////////////////////////////////
 * File:        by_library/windows_clipboard/clipboard_format_sequence/clipboard_format_sequence.cpp
 *
 * Purpose:     C++ example program demonstrating use of the Windows Clipboard
 *              library.
 *
 * Created:     6th June 2006
 * Updated:     11th April 2007
 *
 * www:         http://www.stlsoft.org/
 *
 * License:     Copyright (c) 2006-2007, Synesis Software Pty Ltd.
 *              All rights reserved.
 *
 *              (Licensed under the Synesis Software Open License)
 *
 *              This source code is placed into the public domain 2006
 *              by Synesis Software Pty Ltd. There are no restrictions
 *              whatsoever to your use of the software.
 *
 * ////////////////////////////////////////////////////////////////////// */


/* WinSTL Header Files */
#include <winstl/clipboard/clipboard_format_sequence.hpp>

/* Standard C++ Header Files */
#include <iostream>

int main()
{
    try
    {
        winstl::clipboard_format_sequence   formats;

        { for(winstl::clipboard_format_sequence::const_iterator b = files.begin(); b != files.end(); ++b)
        {
            std::cout << "    " << *b << std::endl;
        }}
    }
    catch(winstl::clipboard_scope_exception &x)
    {
        std::cerr << "Exception: " << x.what() << std::endl;
    }

    return 0;
}

/* ////////////////////////////////////////////////////////////////////// */

Generated on Thu Jun 10 08:55:05 2010 for STLSoft by  doxygen 1.5.6