SYSTEMTIME x;
GetLocalTime(&x);
//cout << "//Logging started: ";
//cout << x.wDay << " " << x.wMonth << " " <<x.wYear << ", ";
//cout << x.wHour << " " << x.wMinute << " " << x.wSecond << endl; fprintf(dateiout,"test")
#include <stdio.h>
FILE* outfile = fopen("myfile.log","w");
SYSTEMTIME x;
GetLocaltime(&x);
fprintf(outfile,"%u.%u.%u %u:%u.%u", x.wDay, x.wMonth, x.wYear, x.wHour, x.wMinute, x.wSecond);
fclose(outfile);
Abstürzen
KUGGELL 13.11.2008 - 8 Hits - 3 Antworten
ASCII String umgekehrt ausgeben
1HELP1 20.11.2008 - 36 Hits - 1 Antwort