Solved

I just want to play a wav file...

Posted on 2006-06-14
4
181 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 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

18 Experts available now in Live!

Get 1:1 Help Now