========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : PlaySound
========================================================================
AppWizard has created this PlaySound application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your PlaySound application.
PlaySound.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
PlaySound.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CPlaySoundApp application class.
PlaySound.cpp
This is the main application source file that contains the application
class CPlaySoundApp.
PlaySound.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
PlaySound.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
res\PlaySound.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file PlaySound.rc.
res\PlaySound.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one dialog class:
PlaySoundDlg.h, PlaySoundDlg.cpp - the dialog
These files contain your CPlaySoundDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in PlaySound.rc, which can be edited in Microsoft
Visual C++.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named PlaySound.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
PlaySound播放器 实现wav文件的播放
共34个文件
h:4个
cpp:3个
obj:3个
4星 · 超过85%的资源 需积分: 50 20 下载量 201 浏览量
2011-07-04
20:21:48
上传
评论 2
收藏 3.55MB RAR 举报
温馨提示
PlaySound播放器 实现wav文件的播放 BOOL PlaySound(LPCSTR pszSound, HMODULE hmod,DWORD fdwSound); 参数pszSound是指定了要播放声音的字符串,该参数可以是WAVE文件的名字,或是WAV资源的名字,或是内存中声音数据的指针,或是在系统注册表WIN.INI中定义的系统事件声音。如果该参数为NULL则停止正在播放的声音。 参数hmod是应用程序的实例句柄,除非pszSound的指向一个资源标识符(即fdwSound被定义为SND_RESOURCE),否则必须设置为NULL。 参数fdwSound是标志的组合,如下表所示。若成功则函数返回TRUE,否则返回FALSE。 使用PlaySound函数时需要在#include<windows.h>后面加上(注意:不能加在前面): #include <mmsystem.h> #pragma comment(lib, "WINMM.LIB")
资源推荐
资源详情
资源评论
收起资源包目录
PlaySound.rar (34个子文件)
PlaySound
PlaySound.opt 48KB
PlaySound.clw 1KB
PlaySoundDlg.cpp 5KB
PlaySound.rc 5KB
PlaySound.cpp 2KB
StdAfx.cpp 211B
resource.h 779B
PlaySound.dsw 543B
PlaySound.aps 20KB
PlaySound.vcproj 6KB
Debug
PlaySound.sbr 0B
PlaySound.bsc 3.11MB
PlaySound.pch 6.91MB
vc60.pdb 372KB
vc60.idb 201KB
PlaySound.ilk 205KB
PlaySound.res 3KB
PlaySound.exe 104KB
StdAfx.obj 115KB
PlaySoundDlg.sbr 0B
PlaySound.pdb 361KB
PlaySoundDlg.obj 28KB
StdAfx.sbr 1.36MB
PlaySound.obj 14KB
ReadMe.txt 4KB
PlaySound.plg 2KB
StdAfx.h 1KB
PlaySound.h 1KB
PlaySound.ncb 57KB
PlaySoundDlg.h 1KB
PlaySound.dsp 4KB
res
PlaySound.ico 1KB
PlaySound.rc2 401B
PlaySound.suo 10KB
共 34 条
- 1
资源评论
- wyxz5552012-04-20感谢楼主,没有安装C++的朋友需要自行下载mfc42d.dll,msvcrtd.dll,mfco42d.dll这三个文件,就能用了 .
- cangfang20062012-12-15这是我需要的资料。
- CABO2012-03-09没有安装C++的朋友需要自行下载mfc42d.dll,msvcrtd.dll,mfco42d.dll这三个文件,就能用了
xztss
- 粉丝: 0
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功