Solved

I just want to play a wav file...

Posted on 2006-06-14
4
182 Views
Last Modified: 2010-04-23
I am trying to write a simple program for a pocket pc device running windows mobile 5.0.
I am using Visual studio 2005.  
All I want to do is play a wav file!
I have seen people use the statement my.computer.audio.play("applause.wav") which is nice and simple.
But when i go to compile, visual studio doesn't know what "my" is.  Should i be referencing something?  This should work, shouldn't it??
Thanks in advance-
0
Comment
Question by:wilbur88
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:fruhj
ID: 16906774
the My Namespace is new in VB.net 2005 (ie .net 2.0),

I'm not entirely sure it made it's way down to the .net compact framework used by WM5.
0
 

Author Comment

by:wilbur88
ID: 16906898
i think you're right.  So maybe I'm not crazy.
What is the next easiest way to play a wav file?  playsound and the winmm.dll?
0
 
LVL 12

Accepted Solution

by:
fruhj earned 250 total points
ID: 16906984
I'm not sure entirely.

I just got my own WM5 device a few weeks ago and haven't tried to code anything for it yet.
I've seen lots of references on forums to www.xda-developers.com and I'm sure there are other sites out there with good examples for WM5 development.
0
 

Author Comment

by:wilbur88
ID: 16907108
ok, thanks for the quick response-
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now