Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Uploading files via FTP
Re: Uploading files via FTP [message #20014 is a reply to message #6421] Mon, 09 February 2009 22:02 Go to previous messageGo to previous message
klrkt is currently offline  klrkt
Messages: 20
Registered: December 2008
Promising Member
nice example - but how can I make it work?
Could you please post a very simple complete project?

I tried the following code in a console, and a window app, and all versions crash IF the ftp.connect is NOT commented out.

Can anyone post a simple complete project? - thank you.

Here is the code:
(YES - I added the plugin/ftp and web stuff...)

#include <plugin/ftp/ftp.h>
#include <plugin/ftp/lib/ftplib.h>
#include <stdio.h>
CONSOLE_APP_MAIN
{
const Vector<String>& cmdline = CommandLine();
for(int i = 0; i < cmdline.GetCount(); i++) {
}
Vector<String> upload;
upload.Add("out.txt");
String strhost="ftp://someftp.com";
String strftpUser="someuser";
String strftpPass="somepassword";
FtpClient ftp;
if(!ftp.Connect(strhost, strftpUser, strftpPass, true)) {
printf("Unable to connect ");
return;
}
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hexbombs
Next Topic: HomeBudget example bug
Goto Forum:
  


Current Time: Sun Jun 08 06:15:33 CEST 2025

Total time taken to generate the page: 0.03711 seconds