<div>Here's an example I've quickly put together for you:</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>import std.stdio;</div><div>import core.stdc.string;</div>
<div><br></div><div>extern(Windows) {</div><div> void* GetClipboardData(uint);</div><div> bool OpenClipboard(void*);</div><div>}</div><div><br></div><div>void main() {</div><div> if (OpenClipboard(null)) {</div>
<div>
auto cstr = cast(char*)GetClipboardData(1);</div><div> if (cstr)</div><div> writeln(<a href="http://std.conv.to">std.conv.to</a>!string(cast(char*)cstr[0..strlen(cstr)]));</div><div> }</div><div>
}</div></div><div><br></div><div><br></div></blockquote><br><div class="gmail_quote">On Sun, Sep 11, 2011 at 9:22 PM, Joel Christensen <span dir="ltr"><<a href="mailto:joelcnz@gmail.com" target="_blank">joelcnz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So how would I got about doing it in D?<div><div></div><div><br>
<br>
On 12-Sep-11 1:52 PM, Vladimir Panteleev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, 12 Sep 2011 04:39:52 +0300, Joel Christensen <<a href="mailto:joelcnz@gmail.com" target="_blank">joelcnz@gmail.com</a>><br>
wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm not sure I would be able to get Windows CE Clipboard stuff working<br>
for me.<br>
</blockquote>
<br>
Search engines often return Windows CE results for API searches.<br>
<br>
Here's the clipboard developer documentation for full Windows versions:<br>
<br>
<a href="http://msdn.microsoft.com/en-us/library/ms648709(v=VS.85).aspx" target="_blank">http://msdn.microsoft.com/en-<u></u>us/library/ms648709(v=VS.85).<u></u>aspx</a><br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>