| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Playing a wavM |
Ok, I found a simple 2 line example to play a wav .vbPlaysound at http://pages.cpsc.ucalgary.ca/~saul/vb_examples/ It works as a stand alone program but when I drop the code into my program. I get variable not defined.With Snd_Async highlighted. I did put the Snap.wav in the same folder as my project. Private Sub Command10_Click() sndPlaySound App.Path & "\snap.wav", SND_ASYNC End Sub 'this is in the Module1 Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long thanks in advance Kirk --- UseNet To RIME Gateway {at} 2/10/05 2:44:45 AM ---* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230) SEEN-BY: 633/267 270 5030/786 @PATH: 278/230 10/345 106/1 2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.