Knowledge Base Nr: 00165 mysleep.cpp - http://www.swe-kaiser.de

Win32: Programm wartet n Sekunden. Nützlich in Batchdateien (Sleep)

  
#include "stdafx.h"

#include "stdlib.h"

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
Sleep(atoi(lpCmdLine)*1000);

return 0;
}