We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

[VB.NET Compact Framework] Playing sound in my application for windows CE (created with VB .Net)

wimmeyvaert
wimmeyvaert asked
on
4,416 Views
Last Modified: 2013-11-17
Im creating a little application that needs to run on Windows CE.
I'm making it with Visual Studio 2005.
The language is VB .NET (Compact .NET framework).

Now my question : How can I play some default windows sounds in my application ?
I need 2 kinds of sounds : an OK-sound and a NOK-sound.

Has someone out here done something similar ?

Thanks in advance.

The Mayor.
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Hi Mikal613,

I'm just planning to go home now.
I will try to look at it in detai ltomorrow.
I'll keep you informed.

Best regards,

The Mayor.

Author

Commented:
Hi Mikal613,

I just added the code I found on the website you provided.
I can compile my project, but unfortunately I don't have a Pocket PC right now (mine is at home for the moment).
So I just run it in emulation mode but the I could not hear any sound.
So, I will try to get a Pocket PC from a collegue of mine to really test it out and check if I hear the sound on a real pocket pc.
I'll get back the moment I have news.

Thanks already for the patience.
Best regards,

The Mayor.

Author

Commented:
I've just noticed that the reason why I didn't get any sound from my 'emulator' was because my sound of my pc was too quite ;-)
I changed my volume on my pc and then I could here the sound playing on the emulator.
Now I just have to find a Pocket PC in our company to test it out.
The application I'm writing needs to run on an industrial handscanner which has Windows CE on it (but we don't have bought these scanners yet).

Do you think an application, developed for Pocket PC 2003 will run on Windows CE too ?
I hope it does, otherwise I have to come with another solution.
CERTIFIED EXPERT

Commented:
absoluetly.

Author

Commented:
Finally had the chance to test it out on a Pocket PC running Windows Mobile 2003 and there it is running al fine.

So, thank you very much for your suggestion. It works like a charm.
Thanks again for your help.

The Mayor.
CERTIFIED EXPERT

Commented:
No problem
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.