--- [EMAIL PROTECTED] wrote:

> > I think that what happens behind the scenes is
> that Windows stores
> > a "Data Object" on the clipboard and that object
> knows how to persist
> > itself to a file, and to do other things like
> provide a text or rtf
> > version of itself  (which is what I use now).

Actually, not quite true.  There is a clipboard type
associated with each entry.  If it is just plain text,
the type is CF_TEXT.  If it is a file such as copying
a file from explorer, the type is CF_HDROP.  There are
many other types such as CF_BITMAP, CF_DIB, etc. 
Developers can even register their own type of
clipboard format.

I am not a .NET person, so not sure how they handle
this in .NET, but in C or C++ you view the type and
then get the appropriate structure associated with the
type.
  
> I am  not sure if the
> > object depends on having its original program
> around and running in
> > order to provide these services.

For files, it keeps the path of the files.  So if you
delete the files before you do the copy or cut, the
paste will not work.  But for images such as
CF_BITMAP, then it loads the bitmap in memory.  It may
persist it, not sure on that one.

> Just some very quick testing, using native windows
> utils...copying a path,
> or file name in explorer shows the path name in the
> clipbrd.exe viewer
> (%windir%\system32\clipbrd.exe). I'll bet the viewer
> is hiding some extra
> characters, that identify that path as file system
> link instead of text (or
> it's just translating whatever is there...).

This is where your different types come into play.  If
there is an application expecting only a CF_TEXT type.
 It only has to look in the clipboard to see if that
type is there, all others will be ignored.

> Anyone know of a way to view the raw contents of the
> clipboard? (maybe
> there's a util out there?)

In code you can view anything, other than that, not
sure if there is a utility to do that

Hope that helps,
Wayne



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to