Solved

Clipboard formats CF_WAVE & CF_RIFF

Posted on 1998-03-02
6
796 Views
Last Modified: 2013-12-03
What is the exact format of the data to be retrieved/stored in clipboard for either CF_WAVE and CF_RIFF?
0
Comment
Question by:RLM
  • 4
  • 2
6 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1411661
Their formats should be exactly the same as the formats of WAV files and RIFF files. You can get the format information at http://www.wotsit.demon.co.uk.
0
 

Author Comment

by:RLM
ID: 1411662
I don't think there is such a thing as a RIFF file. RIFF is chunk type found inside a .wav file. (There's also a 'data' chunk as well.) And I already know the format of a WAV file but my docs on clipboard formats don't indicate that the entire wave file is placed on clipboard. In fact they don't indicate much of anything other than the fact that I can use either CB_WAVE or CB_RIFF.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1411663
A WAV file is a kind of RIFF files. The other examples of RIFF files are AVI files and RMI files (a kind of MIDI files). As far as I understand, CF_WAVE can be standard PCM format, CF_RIFF can be other formats (such as ADPCM, or even AVI) as long as it conforms to RIFF standard.

You can try this.

Call AVIPutFileOnClipboard() to copy an AVI file (or a wave file since AVIFile functions work on RIFF files) to the clipboard. Now the clipboard contains the CF_WAVE data. Then retrieve the data and view it.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 23

Expert Comment

by:chensu
ID: 1411664
I think CF_WAVE contains RIFF WAVE followed by fmt chunk and data chunk while CF_RIFF can contain other chunks.
0
 

Author Comment

by:RLM
ID: 1411665
Thanks chensu, please answer w/anything and I'll grade.
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1411666
Thank you.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question