Napisałem sobie dla testu mały programik (nie krytykujcie sposobu działania :)), ale mam z nim mały problem.
#include <iostream>
#include <fstream>
#include "FTPClient.h"
using namespace std;
string zapis;
fstream plik;
int main()
{
cout << "Co chcesz zapisac?" << endl;
cin >> zapis;
plik.open("plik.html",ios::out);
plik << "<html>" << endl << "<head>" << endl << "<title> TEST </title>" << endl << "</head>" << endl << "<body>" << endl << "<h1>" << zapis << "</h1>" << endl << "</body>" << "</html>";
FTPClient.InitSession("moj serwer", 21, "moja nazwa", "moje haslo");
FTPClient.UploadFile("plik.html", "/public_html/plik.html");
return 0;
}
I ten program wywala ,,|error: 'FTPClient' was not declared in this scope|''. Chodzi chyba o to, że w kodzie jest FTPClient
a nie FTPClient.h
. Tyle, że program uważa .h
w FTPClient.h
jako np. InitSession