MessageBox mit TimeOut WINAPI
|
typedef int (WINAPI *MessageBoxTimeOutWFunc)(HWND hWndParent,PWCHAR strText,PWCHAR strCaption, UINT uType,WORD wLanguageId,DWORD dwMilliseconds);
HMODULE hMod = LoadLibrary(“user32.dll”);
MessageBoxTimeOutWFunc pMessageBoxTimeout = (MessageBoxTimeOutWFunc)GetProcAddress(hMod,”MessageBoxTimeoutW”);
pMessageBoxTimeout(NULL,L”Text”,L”Titel”,MB_OK | MB_SETFOREGROUND,0,3000);
FreeLibrary(hMod);
Autoindex einer Tabelle zurücksetzen MYSQL
|
Mit folgendem SQL-Befehl kann man den Wert vom Autoindex einer SQL-Tabelle auf den höchsten Wert von ID plus 1 setzen. Ohne die Tabelle leeren zu müssen.
ALTER TABLE tabellenname AUTO_INCREMENT=0;