📄 readme.txt
字号:
WAVEPLAY: Simple VB Code Sampling how to play WAV files
using the Windows API
Author: Jeff Lehman (98% of the code is from the VB KnowledgeBase)
Date: 24 August 1996
I have seen LOTS of questions on various NewsGroups asking how to play
WAV files in Visual Basic. Using 98% of the code from the VB Knowledge
Base I finally figured out how.
This project was created in VB 4.0 Pro 16bit. As of now the location of
the WAV files is hardcoded as "C:\VB\WAVEPLAY" so unless you run the
program from a directory by that name, you will have to change the
directory path in the code. I am still trying to learn how to properly
use the CurDir function so the location of the WAV files does not have
to be hardcoded.
When you click on the Quit button the program ends and the "Quit" WAV
file continues to play...I am still trying to figure out how to make the
program wait until the WAV file is finished playing before it ends.
Obviously this code is intended for "Newbies" such as myself, but I would
have liked to have some code like this to "show me" how.
I know there are VBXs and OCXs out there to play WAV files, but I wanted
to learn how to accomplish the task with code first.
Regards
JW
jwlehman@coastalnet.com
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -