Solved

Clipboard formats CF_WAVE & CF_RIFF

Posted on 1998-03-02
6
778 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 23

Expert Comment

by:chensu
Comment Utility
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
Comment Utility
Thanks chensu, please answer w/anything and I'll grade.
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
Comment Utility
Thank you.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now