Link to home
Start Free TrialLog in
Avatar of wimmeyvaert
wimmeyvaert

asked on

[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.
ASKER CERTIFIED SOLUTION
Avatar of Mikal613
Mikal613
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wimmeyvaert
wimmeyvaert

ASKER

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.
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.
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.
absoluetly.
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.
No problem