I have wav files played in a game I've written in Visual Basic 6.0. I've used the MCI control component with the proper code.
In the Sub Form_Load I have:
MMControl1.Notify = False
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.DeviceType = "WaveAudio"
MMControl1.FileName = "C:\System\Regis Walks In.wav"
MMControl1.Command = "Open"
To play it I use the "Play" command and when I unload the form I "Close" it.
The problem is it works great on my computer. When I take it to another computer I get the following error:
"Component 'MCI32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid"
I have tried removing Visual Basic completely and reinstalling it. I also created a new small test program after reinstalling it. I still get the error.
Does anyone have a suggestion, thought, or idea?
Thanks for any assistance you can provide.
IndyOD
In the Sub Form_Load I have:
MMControl1.Notify = False
MMControl1.Wait = True
MMControl1.Shareable = False
MMControl1.DeviceType = "WaveAudio"
MMControl1.FileName = "C:\System\Regis Walks In.wav"
MMControl1.Command = "Open"
To play it I use the "Play" command and when I unload the form I "Close" it.
The problem is it works great on my computer. When I take it to another computer I get the following error:
"Component 'MCI32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid"
I have tried removing Visual Basic completely and reinstalling it. I also created a new small test program after reinstalling it. I still get the error.
Does anyone have a suggestion, thought, or idea?
Thanks for any assistance you can provide.
IndyOD