CoderSource.net
Search
FTP in MFC
Started by theDentist at 05-16-2006 10:25 AM. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
   05-16-2006, 10:25 AM
theDentist is not online. Last active: 1/5/2008 4:01:46 PM theDentist

Top 10 Posts
Joined on 12-05-2005
Posts 42
FTP in MFC

Hi all,

Can anyone get me started on how to upload files using FTP to a URL on an internet server from within my MFC program.  Any help or suggestion for resources will be appreciated

Peter.


   Report 
   05-17-2006, 8:24 AM
Yasir is not online. Last active: 11/16/2006 10:02:40 AM Yasir

Top 10 Posts
Joined on 03-15-2006
Posts 44
Re: FTP in MFC
Hi,

Use the following objects and function to upload the file.
#include

creat anobject following class.

CInternetSession
use the internetsession object to get the object Ftpconnection. store it in the a pointer of following class.
CFtpConnection
Function to be used is.
CInternetSession.GetFtpConnection();
consult MSDN for the parameters.
When u the the connection. now use PutFile function of the class Cftpconnection to put file.
CFtpConnection.putfile();

If you face any problem feel free to get back

Best Regards
-Yasir
   Report 
   05-17-2006, 10:31 AM
theDentist is not online. Last active: 1/5/2008 4:01:46 PM theDentist

Top 10 Posts
Joined on 12-05-2005
Posts 42
Re: FTP in MFC

Hi,

Thanks Yasir, I'll give it a try

Regards

Peter


   Report 
   05-17-2006, 12:59 PM
theDentist is not online. Last active: 1/5/2008 4:01:46 PM theDentist

Top 10 Posts
Joined on 12-05-2005
Posts 42
Re: FTP in MFC

Hi

I've just completed the code, it works fine, no problems, thanks again Yasir. Big Smile [:D]

Regards

Peter

 


   Report 
   05-19-2006, 12:17 PM
Yasir is not online. Last active: 11/16/2006 10:02:40 AM Yasir

Top 10 Posts
Joined on 03-15-2006
Posts 44
Re: FTP in MFC
You are always welcome dear :P

Best Regards
-Yasir
   Report 
Codersource.Net » Programming » MFC Programming » FTP in MFC

MENU
Home
MFC 
C++
.Net
WIN32
Programming
Forum
My Articles
Welcome to Codersource.Net Login | Register | Faq  

Google
 

NOTES:


Thanks for visiting our CoderSource.net. This site will be improved with more articles. Interested visitors can also submit their articles through the Submit Article link.Your article will also be published after due consideration by the editor. 

© Copyright 2003. All rights on content reserved by CoderSource.net. Contact    About Us