VB编写学生成绩统计程序,输入数字时,喇叭能念出数字,高分求教 小弟用VB编写学生成绩统计程序,在学生成绩登录时,想通过小键盘输入出数字是喇叭能念出相应的数字,以帮助提示例如:某班有学生成绩表如下:学生1 98 学生2 98 学生3 98 学生4 98 ...... 在登录学生1成绩是,通过小键盘输入98,喇叭发声输入的数字是98,回车后输入下一个学生的成绩数字1,2,3....9,0的wav文件我已有了可是如何让他们发声呢?高分求教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还要录单位声.CALL sndPlaySound("D:\9.WAV",SND_SYNC)CALL sndPlaySound("D:\十.WAV",SND_SYNC)CALL sndPlaySound("D:\8.WAV",SND_SYNC) 已经解决了应用VB 的API 函数 Option Explicit '声明函数Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwflags As Long) As LongPrivate Sub Text1_KeyPress(KeyAscii As Integer)If KeyAscii = 48 Then PlaySound App.Path + "\sound\0.wav", 0&, &H1If KeyAscii = 49 Then PlaySound App.Path + "\sound\1.wav", 0&, &H1If KeyAscii = 50 Then PlaySound App.Path + "\sound\2.wav", 0&, &H1If KeyAscii = 51 Then PlaySound App.Path + "\sound\3.wav", 0&, &H1If KeyAscii = 52 Then PlaySound App.Path + "\sound\4.wav", 0&, &H1If KeyAscii = 53 Then PlaySound App.Path + "\sound\5.wav", 0&, &H1If KeyAscii = 54 Then PlaySound App.Path + "\sound\6.wav", 0&, &H1If KeyAscii = 55 Then PlaySound App.Path + "\sound\7.wav", 0&, &H1If KeyAscii = 56 Then PlaySound App.Path + "\sound\8.wav", 0&, &H1If KeyAscii = 57 Then PlaySound App.Path + "\sound\9.wav", 0&, &H1If KeyAscii = 46 Then PlaySound App.Path + "\sound\d.wav", 0&, &H1end sub与大家共享@@@@@ 通过句柄向文本框中写本文出现乱码 vb写的代码,偶尔出现蓝屏,进来看看 以加班四天,没有解决的问题。打包后,CreateObject的问题 textbox 怎么做出格式提示,比如1999-02-10 再加20分求帮助,都几个小时了,也没人来看看! 急聘 求一个用VB编写的模式串匹配算法 VB中ACCESS不同版本的兼容性问题 再问两个MSFlexgrid控件的问题 大家想用vb.net开发游戏吗? 求一条SQL语句,非常着急,在线等ing...... 怎么根据有背景颜色的单元格创建一个新表
CALL sndPlaySound("D:\十.WAV",SND_SYNC)
CALL sndPlaySound("D:\8.WAV",SND_SYNC)
应用VB 的API 函数 Option Explicit '声明函数
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwflags As Long) As Long
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 48 Then PlaySound App.Path + "\sound\0.wav", 0&, &H1
If KeyAscii = 49 Then PlaySound App.Path + "\sound\1.wav", 0&, &H1
If KeyAscii = 50 Then PlaySound App.Path + "\sound\2.wav", 0&, &H1
If KeyAscii = 51 Then PlaySound App.Path + "\sound\3.wav", 0&, &H1
If KeyAscii = 52 Then PlaySound App.Path + "\sound\4.wav", 0&, &H1
If KeyAscii = 53 Then PlaySound App.Path + "\sound\5.wav", 0&, &H1
If KeyAscii = 54 Then PlaySound App.Path + "\sound\6.wav", 0&, &H1
If KeyAscii = 55 Then PlaySound App.Path + "\sound\7.wav", 0&, &H1
If KeyAscii = 56 Then PlaySound App.Path + "\sound\8.wav", 0&, &H1
If KeyAscii = 57 Then PlaySound App.Path + "\sound\9.wav", 0&, &H1
If KeyAscii = 46 Then PlaySound App.Path + "\sound\d.wav", 0&, &H1end sub与大家共享@@@@@