Drag data from C++ (OLE) dialog drop into C# winform
Posted on 2010-11-16
No response from my original question so I'm reposting with more detail. Hope it helps.
Having spent a couple of hours trawling throught the net with no sucess, I'm finally posting here with the hopes of some help.
I have a C++ multi dialog application which starts a dragdrop using the OLE RegisterDragDrop. This application also has handers for the drop on othe dialog pages and everything works fine.
I am now upgrading this application with a C# winform being attached to a C++ Dialog. Everything works fine, and is being displayed as intended.
However, I can't get the drop to work from the old C++ (OLE) application to the new C# one.
When the drop event is fired, I can see the Type of the data is a DataObect but any attempt I've made so far in actually getting the data being dragged has resulted in a null.
Can anyone point me to an example of how to get the data being dragged from an OLE application and being dropped into a C# application.
Hope that's enough info, if not please post and I'll try to provide some more. I'm just looking for pointers at the moment rather than a solution.