Solved

Clipboard formats CF_WAVE & CF_RIFF

Posted on 1998-03-02
6
805 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…

738 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