ragà ho di nuovo bisogno del vostro aiuto...sto cercando di scrivere un applicazione win32 che mi scarica un file da un mio server Ftp.
Mi è sembrato che il metodo più semplice fosse con chilkat l'ho scaricato e compilato il progr ...però ottengo sempre questi errori:
codice progr:
errori (non li riporto tutti xkè è sempre lo stesso errore):codice:#include "stdafx.h" #include <CkFtp2.h> #include <CkString.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { CkFtp2 ftp; bool success; // Any string unlocks the component for the 1st 30-days. success = ftp.UnlockComponent("Anything for 30-day trial"); if (success != true) { MessageBox(0,ftp.lastErrorText(),"Errore",MB_ICONSTOP); return 0; } ftp.put_Hostname("miosito.com"); ftp.put_Username("****"); ftp.put_Password("****"); // mi connetto success = ftp.Connect(); if (success != true) { MessageBox(0,ftp.lastErrorText(),"Errore",MB_ICONSTOP); return 0; } // Download file. CkString localFilename; localFilename = "prova.txt"; CkString remoteFilename; remoteFilename = "prova.txt"; success = ftp.GetFile(remoteFilename,localFilename); if (success != true) { MessageBox(0,ftp.lastErrorText(),"Errore",MB_ICONSTOP); return 0; } ftp.Disconnect(); MessageBox(0,"File Scaricato","Avviso",0); return 0; }
cosa sbaglio???????codice:Errore 15fatal error LNK1120: 14 esterni non risolti Errore 14 error LNK2019: riferimento al simbolo esterno "public: __thiscall CkFtp2::CkFtp2(void)" (??0CkFtp2@@QAE@XZ) non risolto nella funzione _WinMain@16 ftpServer.obj Errore 13 error LNK2019: riferimento al simbolo esterno "public: bool __thiscall CkFtp2::UnlockComponent(char const *)" (?UnlockComponent@CkFtp2@@QAE_NPBD@Z) non risolto nella funzione _WinMain@16 ftpServer.obj ftpServer Errore 12 error LNK2019: riferimento al simbolo esterno "public: char const * __thiscall CkFtp2::lastErrorText(void)" (?lastErrorText@CkFtp2@@QAEPBDXZ) non risolto nella funzione _WinMain@16 ftpServer.obj ftpServer etc........![]()

Rispondi quotando
