The old CF.Net Beep() Question

  • Thread starter Thread starter doug.moll
  • Start date Start date
D

doug.moll

I am looking for a way to use a standalone program to make a beep
sound (Voicbeep would be fine) as fast as possible. It does need to be
standalone, but I want it to run as a silent process (no dialog.)

I am using CF 2.0.

What is the current best practice on something like this?

Thanks!
 
Create the project as a Console Application. Then in your Main method call
MessageBeep(0);

P/Invoke for MessageBeep looks like:-

[DllImport("coredll.dll", EntryPoint="MessageBeep", SetLastError=true)]
private static extern void MessageBeep(int type);

Peter
 
Back
Top