Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEDragDrop GetData() in BMP/WAV format?
Message
From
23/05/2005 13:07:29
 
 
To
23/05/2005 11:36:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01016102
Message ID:
01016825
Views:
36
Hi Herman,

>The Bitmap Data is in DIB format:
>
#define CF_DIB 8
>if oDataObject.GetFormat( 2 )
>  lcData = oDataObject.GetData( CF_DIB )
>  ? lcData
>endif
>
I can successfully extract what I believe is a stream of raw DIB data. But if I save this raw data to disk and try to load it into an image control, I get a warning that the image file is corrupt.

Assuming my drop target is an image control:
#define CF_DIB 8
if oDataObject.GetFormat( 2 )
  lcData = oDataObject.GetData( CF_DIB )
  strtofile( lcData, "myimage.dib" )
  this.picture = "myimage.dib"
endif
I am not able to display the myimage.dib file in MS Paint either. I'm sure I'm missing another small detail. Does anyone see it?

Thank you,

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform