设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 3467|回复: 5
打印 上一主题 下一主题

让你的ACCESS程序发出声音的函数

[复制链接]
跳转到指定楼层
1#
发表于 2002-10-7 00:24:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Declare Function apisndPlaySound Lib "winmm" Alias "sndPlaySoundA" _
    (ByVal filename As String, ByVal snd_async As Long) As Long


  Function PlaySound(sWavFile As String)
    ' Purpose:  Plays a sound.
    ' Argument: the full path and file name.

    If apisndPlaySound(sWavFile, 1) = 0 Then
        MsgBox "The Sound Did Not Play!"
    End If
  End Function

调用方法:PlaySound "文件名.WAV"
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1 分享分享 分享淘帖 订阅订阅
2#
发表于 2002-10-7 01:12:00 | 只看该作者
真是爱死你了,太太太太好了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3#
 楼主| 发表于 2002-10-7 01:57:00 | 只看该作者
要爱就爱老外吧,哈哈
4#
发表于 2002-10-8 19:05:00 | 只看该作者
谢谢!!

点击这里给我发消息

5#
发表于 2013-12-3 21:17:22 | 只看该作者
感谢分享,太棒了
6#
发表于 2013-12-4 13:29:01 | 只看该作者
{:soso_e163:}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-7 01:21 , Processed in 0.205939 second(s), 29 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表