How to copy the HTM file to the clipboard, like Windows's own kind

For example HTM file in c:\a.htm
I VB forms a button, you can copy it to the clipboard, and then, I can with windows paste, arbitrary pasted into the E drive or F drive, I just want to realize how to copy them to the clipboard (not a part of a.htm, is the a.htm file)

Started by Pauline at December 23, 2016 - 7:13 PM

No way

Posted by Angus at December 26, 2016 - 7:51 PM

The Function (ClipboardCopyFiles) can be used.
I tried the next, execute "in VB6 replication", can be pasted on my computer.

But estimates of the file name and path contains Chinese characters, problems will be!
Call CopyMem(ByVal (lpGlobal + Len(df)), ByVal data, Len(data))
This is the most obvious problems!

Posted by Pauline at January 06, 2017 - 8:57 PM

Even so much trouble, change a way: SendMessage

Constant and then find the copy and paste.

Posted by Frank at January 07, 2017 - 8:38 PM