Blogroll
Kategorien
- Nufis (61)
- Diverses (20)
- Automobil (1)
- Muss ich haben (1)
- Presse (13)
- Schweiz (5)
- Uncategorized (3)
- Familie (4)
- Informatik (37)
- Nicht ernst zu nehmen (12)
- Diverses (20)
- Nufis (61)
-
Meta
-
Home
Nicht ernst zu nehmen
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 [...]