PC Review


Reply
Thread Tools Rate Thread

Beep function in VB.NET

 
 
Tim Nelson
Guest
Posts: n/a
 
      22nd Sep 2003
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


 
Reply With Quote
 
 
 
 
Maarten Struys
Guest
Posts: n/a
 
      22nd Sep 2003
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.

--
Regards,

Maarten Struys
PTS Software bv

"Tim Nelson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
William Ryan
Guest
Posts: n/a
 
      22nd Sep 2003
Can't you P/Invoke PlaySound and use Voicbeep.wav in the Windows folder?
"Tim Nelson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Rick Winscot
Guest
Posts: n/a
 
      23rd Sep 2003
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


"Tim Nelson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BEEP function not present in .NET CF.... amitkhemlani@gmail.com Microsoft Dot NET Compact Framework 17 16th Mar 2005 08:03 AM
A7V133-VM + PCI video = BEEP BEEP BEEP BEEP? Lost Asus Motherboards 2 13th Nov 2003 05:33 AM
Beep function Ahmed Fat-hi Microsoft VC .NET 1 22nd Sep 2003 11:03 AM
Re: Beep function as trigger Paul Ivanov Microsoft Dot NET Framework Forms 1 26th Aug 2003 06:22 PM
Re: Beep function as trigger Herfried K. Wagner [MVP] Microsoft Dot NET Framework Forms 0 26th Aug 2003 04:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 AM.