eshao: There is no syntax for your API define.
[DllImport("kernel32.dll")]
// [DllImport("kernel32.dll")]
public static extern bool Beep(int frequency, int duration);Just as you defined, maybe frequency is out of our ear.
Please try this: Random random = new Random(); for (int i = 0; i < 10000; i++)
{
Beep(random.Next(10000), 100);
}
[DllImport("kernel32.dll")]
// [DllImport("kernel32.dll")]
public static extern bool Beep(int frequency, int duration);Just as you defined, maybe frequency is out of our ear.
Please try this: Random random = new Random(); for (int i = 0; i < 10000; i++)
{
Beep(random.Next(10000), 100);
}
解决方案 »
- c# 打包
- C# AD查询给定多个用户的信息
- C# 中我已经从数据库中取出了数据,我怎样逐条的读取呢??????
- WinForm中调用水晶报表的问题
- 高手请进!自定义属性绑定的更新问题
- 如何用SendKeys怎么模拟一次空格键?
- 求助 关于list<t>泛型集合存储数据的问题
- 请教这种简洁win8的界面元素利用Vs2010可以设计出来吗?
- C# DataGridView定义好列属性后,怎样绑定DataSet数据源填充数据
- C#中怎么取得当前目录的上一层目录?
- 500分求c#开发三层架构的资料,源码。客户端最好是Win Form
- 如何读取指定字符串间的数据?如:table:{sfdsf,sfdf}怎样将“{”“}”间的数据读出来!
I listened the voice .