realbasic-nug
[Top] [All Lists]

Re: Help! binary Win32 clipboard flavors - how do I get the data?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Help! binary Win32 clipboard flavors - how do I get the data?
From: "German W.Bauer" <germanbauer at earthlink dot net>
Date: Sun, 31 Oct 2004 16:44:57 -0800
Cc:
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <6E823FC8-2961-11D9-AD52-0003933F8BD8 at earthlink dot net> <4181C512 dot 1060503 at realsoftware dot com>
Actually after a few days of experimenting I am finding that the suggestion from Aaron below did not work. Instead it turns out you have to pass in the pretty name string of the clipboard format (e.g. "Adobe Illustrator PDF") that you retrieve with the GetClipboardFormatNameA call to the Win32 API when you pass in the integer. I think that should be documented somehow. (Or maybe somebody can help add this clipbaord stuff to Aaron's Win Functionality suite) There are no pretty names that I can see for the basic first 17 formats such as TIFF, WAV etc. so there I do not think we can retrieve the data using Realbasic, or is there another way for those?

Thanks for all the help so far,
+ German

On Oct 28, 2004, at 9:20 PM, Aaron Ballman wrote:

For example the Illustrator format AICB on Mac is the rough equivalent something like the number 49337 on Win32. So again how do I tell the RB clipboard object to retrieve the data in that Illustrator format?

Have you tried doing this?

dim mb as new MemoryBlock( 4 )
mb.Long( 0 ) = 49337

and then pass in mb.StringValue( 0, 4 ) to the clipboard call?

~Aaron

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>