我是靠谱客的博主 魁梧皮带,这篇文章主要介绍C#使电脑发出嗡鸣声,现在分享给大家,希望可以做个参考。

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace 鸣笛
{
    class Program
    {
        
        static void Main(string[] args)
        {
             
           BeepOn.Beep(500, 700);
            Console.ReadKey();

        }
        
    }

   public  class  BeepOn
 {
    [DllImport("Kernel32.dll")] 
    public static extern bool Beep(int a, int b);
 }

}


原文链接: http://blog.csdn.net/mypc2010/article/details/7983971

转载于:https://my.oschina.net/changpinghu/blog/92534

最后

以上就是魁梧皮带最近收集整理的关于C#使电脑发出嗡鸣声的全部内容,更多相关C#使电脑发出嗡鸣声内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部