[Stackoverflow] [Progress OpenEdge ABL] How to get the innerData from a System.Windows.Forms.IDataObject

Status
Not open for further replies.
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.

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...
 
Status
Not open for further replies.
Back
Top