Hey guys, i need a wave sound file for my program i am working for a basic tutorial for grade school and pre-scool so i am looking for a sound file that fitted to my quiz in pre-school i can`t find in google or to any sites..
ThisIsNotYourS
0
Newbie Poster
Recommended Answers
Jump to Postyou must locate your sound file (abcd.wav) at the dirrectory that contain vb6 application.
private sub cmd1_click() on error resume next soundfile= App.path & "/" & "abcd.wav" returnaval=playsound(soundfile, 0, &H0) Endsub
hope this will help you.
Jump to Postsorry I forgot the most improtant part.please use below code set.
Private Declare Function PlaySound Lib _ "winmm.dll" _ (ByVal lpszName As String, ByVal _ hModule As Long, ByVal dwFlags As Long) As Long private sub cmd1_click() on error resume next soundfile= App.path & "/" & "abcd.wav" …
All 5 Replies
mahela
0
Light Poster
mahela
0
Light Poster
debasisdas
580
Posting Genius
Featured Poster
mahela
0
Light Poster
michellspijkers
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.