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

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.
LVL 6
wimmeyvaertAsked:
Who is Participating?
 
wimmeyvaertAuthor 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.
0
 
wimmeyvaertAuthor 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.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
wimmeyvaertAuthor 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.
0
 
Mikal613Commented:
absoluetly.
0
 
wimmeyvaertAuthor 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.
0
 
Mikal613Commented:
No problem
0
All Courses

From novice to tech pro — start learning today.