Clipboard Tinkering - clipboard.d

Andrew Fedoniouk news at terrainformatica.com
Sat Jul 8 23:40:44 PDT 2006


"Kevin Laborda" <Kevin_member at pathlink.com> wrote in message 
news:e8onuu$161a$1 at digitaldaemon.com...
> 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?
>
>

You can use NULL as HWND in clipboard functions.

See:
module  harmonia.ui.exchange.clipboard;
module  harmonia.ui.native.win32exchange;

http://harmonia.terrainformatica.com










More information about the Digitalmars-d mailing list