您的位置:程序门 -> 移动平台 -> windows mobile



如何在.net2003中实现pda震动或者发出声音报警呢?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


如何在.net2003中实现pda震动或者发出声音报警呢?[已结贴,结贴人:zhiyuzhe]
发表于:2007-11-08 15:20:06 楼主
就是说程序处理的过程中,如果数据超过某一个范围,可以让pda震动或者发出声音报警来提醒用户,我用beep()函数在台式机上可以实现,到了pda上就不支持了.
请问这个该怎么实现啊?
发表于:2007-11-08 15:32:491楼 得分:10
试试messagebeep()  
发表于:2007-11-08 20:04:362楼 得分:5
使用led函数
发表于:2007-11-11 00:33:583楼 得分:35
发声音的话,用playsound来播放一段声音也行啊。
发表于:2007-11-13 21:26:414楼 得分:0
不支持messagebeep()或beep()函数,只有用playsound()来实现

                  [dllimport("coredll.dll")]
                public   static   extern   bool   playsound(string   pszsound,   int   hmod,   int   fdwsound);
                public   const   int   snd_filename   =   0x00020000;
                public   const   int   snd_async   =   0x0001;  


                playsound("\\flash   disk\\b.wav",   0,   snd_filename   ¦   snd_async);//调用函数,注意路径


快速检索

最新资讯
热门点击