How to get the windows' time in win32
Maybe like this....
#include <windows.h>
int WINAPI WinMain (HINSTANCE hThisI, HINSTANCE hPrevI, LPSTR arg, int style) { SYSTEMTIME time; char timestring[20];
GetLocalTime (&time); wsprintf (timestring, "%02u:%02u.%02u", time.wHour, time.wMinute, time.wSecond);
MessageBox(NULL,timestring,"timebox",MB_OK); }
/Roger
Log in to post a comment.
How to get the windows' time in win32
Maybe like this....
#include <windows.h>
int WINAPI
WinMain (HINSTANCE hThisI, HINSTANCE hPrevI, LPSTR arg, int style)
{
SYSTEMTIME time;
char timestring[20];
GetLocalTime (&time);
wsprintf (timestring, "%02u:%02u.%02u", time.wHour, time.wMinute, time.wSecond);
MessageBox(NULL,timestring,"timebox",MB_OK);
}
/Roger