Beep function in VB.NET

  • Thread starter Thread starter Tim Nelson
  • Start date Start date
T

Tim Nelson

I am trying to add some simple beeps as feedback in my Pocket
PC application. I can't seem to find a function that does this
even using P/Invoke.

Please help. Thanks
 
You should P/Invoke MessageBeep or PlaySound. For code samples search the
archives of this newsgroup using Google. Searching for beep or playsound
gives you a number of hits.
 
Tim,

The bad part about using playsound - is the fact that not all pocket pcs are
created equal. Filenames do change from time to time - which is why
playsound will play the default system wav file if it can't find the file
you specified as a parameter. In order to make sure that the wav file that
you want to play is on the device - you would have to include it with your
application.

Actually there is a function in C++ that produces a simple DTMF beep...
I've wrapped it in a dll that can be PInvoked from .NET - and it works from
the 10 + pocket pcs that I have. Let me know if you would like the source -
happy to help.

Rick Winscot
rickly@zyche dot com
 
Back
Top