// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include <stdlib.h>
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
{
int ass = rand();
system("date "+ass+"-01-01"); // here error
}
return TRUE;
}
i was trying to create a dll which automaticaly changes date to random one but i have a error here, help? or write me a code of randomizing system date? :$