|
Short story: Shows how to play WAV files directly from RES files, as well as some other resource-based bitmap techniques.
Longer description from old site: click here.
To be edited...
This sample, or the one from which it originally derived, was published (or at least peripherally mentioned) in the following article(s):
- Make the Most of Resources, Programming Techniques, VBPJ, January 1997
This sample uses the following API calls:
Module Library Function CPictureDC.cls gdi32
user32CreateCompatibleDC
DeleteDC
DeleteObject
GetObject
SelectObject
GetDC
GetDesktopWindow
ReleaseDCCustomBlt.bas gdi32
user32BitBlt
CreateBitmap
CreateCompatibleBitmap
CreateCompatibleDC
DeleteDC
DeleteObject
GetDeviceCaps
GetObject
SelectObject
SetBkColor
SetBkMode
GetClientRect
GetDC
ReleaseDCMSndRes.bas winmm PlaySound
PlaySoundResDemo.frm user32 DrawIcon Don't see what you're looking for? Here's a complete API cross-reference.
Please, enjoy and learn from this sample. Include its code within your own projects, if you wish. But, in order to insure only the most recent code is available to all, I ask that you don't share the sample by any form of mass distribution. Download ResDemo.zip, 488Kb, Last Updated: Wednesday, April 12, 2000