J
Jarne
Guest
I try to implement Drag and Drop from WhatsApp to a WinForms application. I found this post that explains that I need to get the innerData object.
I have a event that handles the Drag and drop wher I get an IDataObject. But when I try to access the innerData, the field is not valid.
Continue reading...
I have a event that handles the Drag and drop wher I get an IDataObject. But when I try to access the innerData, the field is not valid.
Code:
ASSIGN comDataObject = CAST(e:Data, "System.Runtime.InteropServices.ComTypes.IDataObject").
MESSAGE VALID-OBJECT(comDataObject)
VIEW-AS ALERT-BOX INFORMATION BUTTONS OK.
innerDataField = comDataObject:GetField("innerData", System.Reflection.BindingFlags:NonPublic ).
innerDataField:GetValue( comDataObject ).
MESSAGE VALID-OBJECT( innerDataField ) // Not valid
VIEW-AS ALERT-BOX INFORMATION BUTTONS OK.
// invoke the GetDataFromHGLOBLAL method
Continue reading...