|
-
Apr 27th, 2000, 01:16 AM
#1
Thread Starter
Lively Member
Code:
Private Sub Command1_Click()
MMControl1.Notify = False
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.DeviceType = "WaveAudio"
MMControl1.Command = "Open"
MMControl1.filename = "c:\windows\media\done.wav"
MMControl1.Command = "Play"
End Sub
The above opens and plays an external wav file. Is there any way to integrate a wav into an app and play it straight from the app, or even any way to integrate the wav into the app and then install it into a directory on the computer? Anything to do with OLEs? I don't know - that's why I'm asking!!! 
Cheers
Sam
-
Apr 27th, 2000, 09:36 AM
#2
Lively Member
No, you don't need OLE. If you're planning on distributing your application, just include the done.wav file in your CAB when you package your program. If you copy the file to the same directory as your application, you can use App.path and this will insure that no matter where the user install your program, the wave file will run.
I'm not sure if that answered your question or not. If it didn't, let me know. I'll try again.
-
Apr 27th, 2000, 09:57 AM
#3
Another answer
Or include the .wav as a resource file . Does add to the over-head, but what the hell we are in dll hell as it is
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|