净WinForm的系统提示音在64位操作系统

编程入门 行业动态 更新时间:2024-10-27 20:31:01
本文介绍了净WinForm的系统提示音在64位操作系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的应用程序需要验证失败时,使用户(谁可能是几英尺远)可以听到它发出蜂鸣声。我想使用 Console.Beep()但是这是的在64位环境中不可用(见备注)。有可能会或可能不会在/在电脑音箱,所以我不能使用 System.Media.SystemSounds.Beep.Play()。

My application needs to beep when validation fails so the user (who may be several feet away) may hear it. I'd like to use the Console.Beep() but this is unavailable in a x64 environment (see the remarks). There may or may not be speakers in/at the computer, so I can't use System.Media.SystemSounds.Beep.Play().

目前的目标平台是x86的环境,但我希望有在64位也运行能力的应用程序。

The current target platform is a x86 environment, but I'd like to have the ability for the application to run in x64 also.

有没有办法做到这一点,或者我应该干脆放弃?

Is there a way to do this or should I just give up?

修改:添加链接方法

推荐答案

的提示音已被删除为所有x64平台上的本机功能(当然,所以没有托管版本),有一个连接问题的请愿书归还。

Beep has been removed as a native function from all x64 platforms (so no managed version of course), there is a connect issue that petition to return it.

我们使用不同的技巧来发现服务器,我们的远程弹出DVD驱动器,驱动器与托盘开放是一个正在寻找:)

We use a different trick to discover servers, we remote eject the dvd drive, and the drive with the tray open is the one were looking for :)

拉里·奥斯特曼大约有一个很好的文章:什么是与Windows中的嘟嘟司机7

Larry Osterman has a great article about this: What's up with the beep driver in Windows 7

更多推荐

净WinForm的系统提示音在64位操作系统

本文发布于:2023-07-11 08:55:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1093496.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:提示音   操作系统   系统   WinForm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!