There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox firewall freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware motherboard mouse network networking outlook outlook 2007 popups power printer problem ram router screen slow sound trojan usb virus vista vista 32-bit windows windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Visual basic sound problem..


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Maggz's Avatar
Senior Member with 627 posts.
 
Join Date: Jun 2003
Location: Mass
Experience: Advanced
28-Dec-2003, 01:46 AM #1
Visual basic sound problem..
Its simple as this. I have the following code:

Private Sub Timer2_Timer()
If WebBrowser1.LocationURL = ("http://www.loconline.com/index.php") Then


mmcIntro.FileName = "zww_title.mid"
mmcIntro.Command = "Open"
mmcIntro.Command = "Play"
mmcBattle.Command = "Stop"
mmcOther.Command = "Stop"

ElseIf WebBrowser1.LocationURL = ("http://www.loconline.com/lobby.php") Then


mmcBattle.FileName = "drf_battle_techno.mid"
mmcBattle.Command = "Open"
mmcBattle.Command = "Play"
mmcOther.Command = "Stop"
mmcIntro.Command = "Stop"

Else

mmcOther.FileName = "sfa_galleonbattle.mid"
mmcOther.Command = "Open"
mmcOther.Command = "Play"
mmcBattle.Command = "Stop"
mmcIntro.Command = "Stop"

End If
End Sub

All is fine when i test it in runtime but when I compile it the sound does not run! I cant figgure out why! The same computer the sound doesnt even load and play as it does countless times in the actual test run from VB6. If anyone can help me and my partners would be extremely greatful ill even put you in the credits!
Maggz's Avatar
Senior Member with 627 posts.
 
Join Date: Jun 2003
Location: Mass
Experience: Advanced
29-Dec-2003, 12:01 AM #2
Fixed it finally. You need to compile the music in the same directory as the .exe which means ill have to use Clickteams install program to distribute music and icons with it. No problem
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:08 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.