Solved

I just want to play a wav file...

Posted on 2006-06-14
4
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

631 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