D
Deepak Malkan [Bentley]
Our product has implementation both in managed & unmanaged code. So also,
user interface dialogs are both in managed & unmanaged. Currently, I'm
working to support drag & drop across the interop boundaries & am running
into some problems with custom data formats.
So far, I've discovered that if I create a DataObject in managed code for my
custom data format, then on the unmanaged side, I get the DataObject as a
COM object. What is the way to extract the actual data from this COM object?
I've tried various ways to decipher the COM object, including defining my
own unmanaged COM DataObject & calling Marshal.GetObjectForIUnknown to wrap
the unmanaged COM object, but so far I haven't been able to figure out the
proper way to extract my data correctly on the unmanaged end.
I suspect I will run into a similar situation when trying to drag & drop
from an unmanaged dialog to a managed dialog.
I will appreciate any pointers to resolving this problem.
With Regards,
Deepak Malkan
Bentley Systems.
user interface dialogs are both in managed & unmanaged. Currently, I'm
working to support drag & drop across the interop boundaries & am running
into some problems with custom data formats.
So far, I've discovered that if I create a DataObject in managed code for my
custom data format, then on the unmanaged side, I get the DataObject as a
COM object. What is the way to extract the actual data from this COM object?
I've tried various ways to decipher the COM object, including defining my
own unmanaged COM DataObject & calling Marshal.GetObjectForIUnknown to wrap
the unmanaged COM object, but so far I haven't been able to figure out the
proper way to extract my data correctly on the unmanaged end.
I suspect I will run into a similar situation when trying to drag & drop
from an unmanaged dialog to a managed dialog.
I will appreciate any pointers to resolving this problem.
With Regards,
Deepak Malkan
Bentley Systems.