Bardzo chętnie przesiądę się na Microsoft Visual Studio 2010 - ale wtedy mój program przestaje działać.
#include <Windows.h>
#include <wininet.h>
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
string logi,ip,czas, nazwa;
time_t rawtime;
struct tm * timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
czas=asctime(timeinfo);
HINTERNET net=InternetOpen("studentlive.pl",INTERNET_OPEN_TYPE_PRECONFIG, 0,0,INTERNET_FLAG_ASYNC);
HINTERNET netFTP=InternetConnect(net,"studentlive.pl",INTERNET_DEFAULT_FTP_PORT,"***********","**************",INTERNET_SERVICE_FTP,0,0);
FtpGetFile(netFTP,"log.txt","log", FALSE, FILE_ATTRIBUTE_NORMAL, FTP_TRANSFER_TYPE_BINARY, 0);
logi+=czas;
ofstream plik;
plik.open("log",ios::app);
plik << logi;
plik.close();
FtpPutFile(netFTP,"log","log.txt", INTERNET_FLAG_TRANSFER_BINARY, FALSE);
InternetCloseHandle(net);
DeleteFile("log");
}