Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEDragDrop GetData() in BMP/WAV format?
Message
From
24/05/2005 16:57:01
 
 
To
24/05/2005 16:05:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01016102
Message ID:
01017283
Views:
40
>Hi,
>
>just want to throw in that this is buggy ..
>
>
>#define CF_DIB 8
>if oDataObject.GetFormat( 2 )
>  lcData = oDataObject.GetData( CF_DIB )
>  strtofile( lcData, "myimage.dib" )
>  this.picture = "myimage.dib"
>endif
>
>
>only because the Dataobject contains data of type CF_BITMAP doesn't neccessarily mean that there's also data of type CF_DIB .. Word puts images in both formats into the dataobject .. but that doesn't have to be true for other applications .., it's up to the application you're dragging from if there is CF_DIB data, CF_BITMAP or both.
>

Christian,

I have tested from several apps. When an image is drag from other apps then drop into VFP, if there is a CF_BITMAP data, it always has CF_DIB. But if it is CF_DIB it doesn't have to have CF_BITMAP.

You can try it yourself. However it is a good advice for defends code as always :)
Regards
Herman
Previous
Reply
Map
View

Click here to load this message in the networking platform