Kuckucks Uhr in C#
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace Uhr
{
public partial class Form1 : Form
{
[DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi)]
protected static extern int mciSendString
(string mciCommand,
StringBuilder returnValue,
int returnLength,
IntPtr callback);
[DllImport("kernel32.dll")]
public static extern bool Beep(int frequency, int duration);
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
for [...]