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
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