Clipboard Tinkering - clipboard.d
Stewart Gordon
smjg_1998 at yahoo.com
Tue Jul 11 06:02:20 PDT 2006
Kevin Laborda wrote:
> I'm working on a project of mine which does the following (don't ask why... it's
> for a game):
> 1. Grabs an HTML page
> 2. Parses it with RegExp to obtain specific data.
> 3. Writes the data to a file.
>
> Now, I want to add a feature which automatically sets the clipboard to this
> specific data. The data is stored as-- char[] data. I've attached some "code"
> which tries to set data to the clipboard (function from "Matthew"). Yet,
> OpenClipboard isn't working right, so I assume HWND needs to be set properly.
> This leads to my question: how do I get HWND set properly so this will work?
http://tinyurl.com/ghalp
The argument passed to OpenClipboard must be a handle of a window, not
an application instance. Since you have no window, just set it to null.
Stewart.
More information about the Digitalmars-d
mailing list