ja also ich bin jetzt soweit
#include <cstdlib>
#include <iostream>
#include <windows.h>
#include <ftplib.h>
using namespace std;
int main(int argc, char *argv[])
{
ftphandle myftp;
Login("name","pass");
Connect("host.org");
system("PAUSE");
return EXIT_SUCCESS;
}
Alles anzeigen
nur jetzt schreibt der compiler, das login und connect nicht definiert sind
und in der dokumentation steht ja auch
Zitat
Every ftp session is represented by an ftplib object, whose methods are called to communicate with the ftp server. The ftp sessions should begin with a call to myftp.Connect("myftp.org:21") (and maybe myftp.NegotiateEncryption()), be followed with myftp.Login("myuser","mypass") and ended by myftp.Quit(); For the magic in between, read the class methods documentation
also wird das ja wie ich schon vermutret habe über ein objekt laufen, nur wie bekomme/deklariere ich das objekt myftp?
//e:
also ich hab jetzt noch mal einiges ausprobiert, nur ich bekokms einfach nicht hin
kann doch net so schwer sein
#include <cstdlib>
#include <iostream>
#include <windows.h>
#include <ftplib.h>
using namespace std;
int main(int argc, char *argv[])
{
//ftplib();
//ftphandle myftp;
//ftplib lib;
ftplib::ftplib();
//myftp.ftphandle ctrl;
//myftp->ftplib();
//class myftp = new ftplib();
//lib.Connect("host");
//ftplib* lib = new ftplib();
//lib::Login("name","pass");
//lib::Connect("host");
//ftplib lib;
system("PAUSE");
return EXIT_SUCCESS;
}
Alles anzeigen