Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLEDragDrop GetData() in BMP/WAV format?

Status
Not open for further replies.

awaresoft

Programmer
Joined
Feb 16, 2002
Messages
373
Location
DE
Anyone have any suggestions on how I can use the oDataObject.GetData() to retrieve binary BMP and WAV data dragged from another application?

I can successfully recognize data in BMP and WAV format via

oDataObject.GetFormat( 2 ) && binary BMP data (CF_BITMAP)
oDataObject.GetFormat( 12 ) && binary WAV data (CF_WAVE)

But ... I can't figure out how to retrieve this info once I've detected it:

For example:

oDataObject.GetData( 2 ) returns .F.

and

local laData[ 1 ]
oDataObject.GetData( 2, @laData )

doesn't change the default .F. value in laData.

I'm also looking for a way to place binary BMP and WAV data in oDataObject so users can drag this type of info out of my application and back to their original applications.

Any suggestions?

Malcolm
 

There is an API called DIBToBitmap although I have never used it.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi Mike,

Thanks for the tip about DIBToBitmap. I'll see if that will help.

Malcolm
 
Malcolm,

I'm curious... did you ever resolve this?

Thanks,
Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top