🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #840

Re: DDE Binary data transfer

#840
From: Robert Goodearl
Date: Wed, 05 Dec 1990 22:49
25 lines
1616 bytes
In article <18117@netcom.UUCP> mojo@netcom.UUCP (Morris Jones) writes:
>keogh@nixeid.UUCP (Paul Keogh) writes:
>>Is it possible to transfer simple binary data using the DDE messaging 
>>facility ?. 
>
>As long as the sending and receiving applications know the Clipboard
>format number, you should be able to send anything at all by DDE.  I have
>DDE applications which use a set of USER clipboard formats for the data.
>

In answer to the first question, yes.  You simply register your own clipboard
format, using a name which is likely to be unique.  As long as both
applications register with the same name, they will use the same format.
Once you have your own clipboard format, you are free to do with it what
you want.  You will need a header that at minimum says how long the data
in the message is, since the DDE_DATA message has no provision for passing
length of data.

As an addition to the resonse,
you could also have one application register the clipboard format and the
other look up the name.  Once you've checked a clipboard format number
to insure that it is NOT a predefined format, you can get the name of the
format with GetClipboardFormatName().
-- 
Bob Goodearl -- goodearl@world.std.com
Technical Details
Message-ID: <1990Dec5.224949.8446@world.std.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!world!goodearl
References: <55@nixeid.UUCP> <18117@netcom.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!world!goodearl
From: goodearl@world.std.com (Robert Goodearl)
Newsgroups: comp.windows.ms.programmer
Subject: Re: DDE Binary data transfer
Keywords: dde, binary
Message-ID: <1990Dec5.224949.8446@world.std.com>
Date: 5 Dec 90 22:49:49 GMT
References: <55@nixeid.UUCP> <18117@netcom.UUCP>
Organization: The World @ Software Tool & Die
Lines: 25