Home
The place to start.
Development
Software development links, free utilities, source code, product reviews and more.
Products
Product information, downloads and purchasing information.
Contact/About
Who's behind this site and how to contact them.
What's New
All of the latest news and articles.
Community
An open forum to discuss Icy North products or site content.
|
Clipboard Access DLL
Brett Kapilik
Saturday, November 30, 2002
IRClipboardFunctions.dll is a DLL that can be used to write text to and retrieve it from the Windows clipboard. I wrote this DLL for use with AutoPlay Media Studio 4.0, although it should be callable from any Win32 program written in C, C++, Delphi, VB, etc.
IRClipboardFunctions.dll was written in C++ and does not have any external dependencies. It exposes three functions:
BOOL IsTextOnClipboard() Returns TRUE or FALSE depending on whether or not there is text available on the Windows clipboard.
BOOL CopyTextToClipboard(LPCTSTR strText) Puts text onto the Windows clipboard. Returns TRUE if successful or FALSE if it fails (I don't see why it would ever fail).
LPCTSTR GetTextFromClipboard() Gets the contents of the Windows clipboard if there is text available, returns an empty string ("") if not there.
From AutoPlay Media Studio, simply use a File.CallDLLFunction action to call the appropriate function:
Download ClipboardTestDLL.zip This download contains the DLL and an AutoPlay Media Studio 4.0 project file that demonstrates usage. You are free to use this DLL in any way that you wish without restrictions. However, you must use it at your own risk. It does not come with any warranties or guarantees whatsoever.
|