Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clipboard data from outlook message

Status
Not open for further replies.

Andyfives

Programmer
Feb 22, 2002
46
DK
Good day

I would like users to be able to copy outlook message files to the clipboard (ctrl-V) and paste as a file into a powerbuilder application. We have dragdrop working well, but we have many user working through multiple citrix sessions where only good old fashioned copy - paste works.

Windows explorer gives a perfect example of being able to paste the message just as I would like. But what does it use under the bonnet to do this??

I notice that files from Explorer into Powerbuilder are of a
HDROP (15) type, whereas message files directly from Outlook are a Dataobject (49161) format. I can easily get files from explorer into my db using HDROP methods.

But.... is there a way to convert the dataobject format into HDROP, because then I can handle it in my current powerbuilder code?

Otherwise: After getting the handle of the dataobject, I guess I need to use globallock, copymemory windows API calls? Do any of you have experience in this?

If so once I have the data in a blob, how can I then make use of this?

Any help will be much appreciated. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top