🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #633

Re: Getting binary data from the clipboard

#633
From: Remy Lebeau (TeamB)
Date: Mon, 11 Feb 2008 18:30
30 lines
1998 bytes
"Paul" <someone@microsoft.com> wrote in message 
news:47ad5ffd@newsgroups.borland.com...

> I am using a third party application (that has an inbuilt hex viewer)
> that I use to copy data onto the clipboard

Then you are limited to whatever formats that app decides to put on the 
clipboard.

> I have no idea what format the data is in.

You can use the Win32 API EnumClipboardFormats() and 
GetClipboardFormatName() functions (or find a third-party clipboard viewer 
app) for that.

> I want to paste the data into a hex editor that I have written.

Then you first need to find out what format(s) are actually on the clipboard 
to begin with.  Copy some data from the app, see how the clipboard was 
modified, and then report back here with the results.

> I have a third party hex editor which I can paste the same copied
> data into

Then the original app is using a clipboard format that the second app 
recognizes.


Gambit 
Technical Details
Message-ID: <47b09425$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeeder.dynfx.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47aceda1$1@newsgroups.borland.com> <MPG.221719ed59086717989a55@newsgroups.borland.com> <47ad5ffd@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c5ac8670671c8a0e
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <47aceda1$1@newsgroups.borland.com> <MPG.221719ed59086717989a55@newsgroups.borland.com> <47ad5ffd@newsgroups.borland.com>
Subject: Re: Getting binary data from the clipboard
Date: Mon, 11 Feb 2008 10:30:33 -0800
Lines: 32
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <47b09425$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1202754597 207.178.157.90 (11 Feb 2008 10:29:57 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeeder.dynfx.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail