Solved

I just want to play a wav file...

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 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