Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
struct timerstruct
{
void (*func)(void *);
void *param;
unsigned int ms;
};
void timerth(void *p)
{
Sleep(((struct timerstruct *)p)->ms);
((struct timerstruct *)p)->f(((struct timerstruct *)p)->param);
free(p);
}
void starttimer(int ms, void (*funktion)(void *), void *funktionsparameter)
{
struct timerstruct *p;
p = (struct timerstruct *)malloc(sizeof(struct timerstruct));
p->func = funktion;
p->param = funktionsparameter;
p->ms = ms;
_beginthread(p);
}
//...
void meinefunktion(void *meinparameter)
{
}
//...
char c[1024];
starttimer(1000, meinefunktion, c); //1 Sekunde
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 153 (GLX)
Minor opcode of failed request: 26 (X_GLXMakeContextCurrent)
Serial number of failed request: 52
Current serial number in output stream: 52
Fenster.draw();