DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    49

    System.Media.SoundPlayer problems in 98

    I wrote the code a while ago and everything works fine on all of the machines I've installed it on. I am now trying to put it on the daycare's old pentium 3 with win98. I wrote it in VB.Net 2005 and installed .net framework 2.0. When the sounds are supposed to play, I get nothing. No sound, No error, no nothing.. Here is the code. Any ideas?

    Code:
    Sub PlaySound(ByVal Filex As String)
            Dim Sound As New System.Media.SoundPlayer()
            Sound.SoundLocation = Filex
            Sound.Load()
            Sound.Play()
        End Sub
    Does System.Media.SoundPlayer come from the framework (I think it does ) or from the OS?

    here is an example of how I am calling this

    Code:
    FormMain.PlaySound(System.AppDomain.CurrentDomain.BaseDirectory.ToString & "Counting\Question1.wav")

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,652
    It does come from the framework, but the framework also relies on the OS for many things. It is possible that Win98 does have have what the framework is looking for in this instance.

    I want to state this is only an hypothesis.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Problems with MSSQLServer and Java
    By jlopes151 in forum Database
    Replies: 1
    Last Post: 11-21-2005, 04:32 AM
  2. External Outlook Problems
    By Peter in forum Enterprise
    Replies: 0
    Last Post: 12-10-2002, 10:05 PM
  3. Replies: 0
    Last Post: 07-19-2002, 01:41 AM
  4. ASP Debuggin Problems in Visual Interdev
    By AndreasK in forum ASP.NET
    Replies: 0
    Last Post: 10-04-2000, 04:09 AM
  5. Replies: 0
    Last Post: 10-04-2000, 04:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links