ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   С/С++, C#, Rust, Swift, Go, Java, Perl, Ruby (https://forum.antichat.xyz/forumdisplay.php?f=24)
-   -   [Урок] Создание библиотеки dll (https://forum.antichat.xyz/showthread.php?t=1301610)

xN4ME 11.07.2013 05:06

Код:





[CODE]
#include
#include
#include

using namespace std;

void __cdecl Log(char *string, ...)
{
char a[512];
ofstream log;
SYSTEMTIME time;
GetLocalTime(&time);
log.open("Adeon.log",ios::app);
sprintf_s(a, "[%02d:%02d:%02d.%03d] %s",time.wHour, time.wMinute, time.wSecond, time.wMilliseconds, string);
log



Автор: xN4ME

Источник: http://adeon.org/forum/showtopic/49-c-sozdanie-biblioteki-dll

SergoTawer 26.07.2013 19:19

Спасибо


Время: 14:52