troubleshooting Question

Creating beep on pocket pc

Avatar of Ludo_Dirckx
Ludo_Dirckx asked on
C#
3 Comments1 Solution1122 ViewsLast Modified:
Hello,
I am using win mobil 2003 se and developing web service applications on it.
Once the application connects to the gerver and get an delivery-order from the server the driver who is using the pda should get an sound alert.
I was trying to get some code, it uses the win dll import.
It is working on the desktop but not on the pocket pc.
I attach the code bellow.
Can anyone give me an idea why it is not working.
Do we have the same dll in the pda also(kernel32.dll).
I call this class from my main form.

using System;
using System.Runtime.InteropServices;
namespace EKS_comsy
{
     public class BeepProcess
    {
       [DllImport("kernel32.dll")]
       public static extern bool Beep(int frequency, int duration);
         public BeepProcess()
          {
             Random random = new Random();
             for (int i = 0; i < 10; i++)
              {
               Beep(random.Next(10000), 5);
              }
           }
      }
}



thanks in advance.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros