I've copied a file into the Windows clipboard (By simply clicking right, copy).
I would like to load a TStream descendant with the file currently stored in the clipboard.
uses
Classes, Clipbrd;
MyStream := TMemoryStream.Create;
try
//here I would like to load the clipboard file into MyStream
finally
MyStream.Free;
end;
When you copy a file onto the clipboard from the hard drive, it simply copies the file's full path and filename in
CF_HDROPformat. You can use theDragQueryFile()function to read the filenames, eg: