文件名称:PlaySound
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:302.49kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
从资源文件中,载入音声,图片等,并播放声音,或者显示
HINSTANCE h=AfxGetInstanceHandle()
HRSRC hr=FindResource(h,\"IDW\",\"WAVE\")
HGLOBAL hg=LoadResource(h,hr)
LPSTR lp=(LPSTR)LockResource(hg)
sndPlaySound(lp,SND_MEMORY|SND_ASYNC)
FreeResource(hg)
return 0
HINSTANCE h=AfxGetInstanceHandle()
HRSRC hr=FindResource(h,\"IDW\",\"WAVE\")
HGLOBAL hg=LoadResource(h,hr)
LPSTR lp=(LPSTR)LockResource(hg)
sndPlaySound(lp,SND_MEMORY|SND_ASYNC)
FreeResource(hg)
return 0
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PlaySound/
PlaySound/Debug/
PlaySound/MainFrm.cpp
PlaySound/MainFrm.h
PlaySound/PlaySound.aps
PlaySound/PlaySound.clw
PlaySound/PlaySound.cpp
PlaySound/PlaySound.dsp
PlaySound/PlaySound.dsw
PlaySound/PlaySound.h
PlaySound/PlaySound.opt
PlaySound/PlaySound.plg
PlaySound/PlaySound.rc
PlaySound/PlaySoundDoc.cpp
PlaySound/PlaySoundDoc.h
PlaySound/PlaySoundView.cpp
PlaySound/PlaySoundView.h
PlaySound/ReadMe.txt
PlaySound/res/
PlaySound/Resource.h
PlaySound/res/PlaySound.ico
PlaySound/res/PlaySound.rc2
PlaySound/res/PlaySoundDoc.ico
PlaySound/res/shutter.wav
PlaySound/res/Toolbar.bmp
PlaySound/StdAfx.cpp
PlaySound/StdAfx.h
PlaySound/Debug/
PlaySound/MainFrm.cpp
PlaySound/MainFrm.h
PlaySound/PlaySound.aps
PlaySound/PlaySound.clw
PlaySound/PlaySound.cpp
PlaySound/PlaySound.dsp
PlaySound/PlaySound.dsw
PlaySound/PlaySound.h
PlaySound/PlaySound.opt
PlaySound/PlaySound.plg
PlaySound/PlaySound.rc
PlaySound/PlaySoundDoc.cpp
PlaySound/PlaySoundDoc.h
PlaySound/PlaySoundView.cpp
PlaySound/PlaySoundView.h
PlaySound/ReadMe.txt
PlaySound/res/
PlaySound/Resource.h
PlaySound/res/PlaySound.ico
PlaySound/res/PlaySound.rc2
PlaySound/res/PlaySoundDoc.ico
PlaySound/res/shutter.wav
PlaySound/res/Toolbar.bmp
PlaySound/StdAfx.cpp
PlaySound/StdAfx.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.