|
|
|
Re: FTP in MFC
Started by theDentist at 05-16-2006 10:25 AM. Topic has 4 replies.
|
|
05-16-2006, 10:25 AM
|
theDentist
Joined on 12-05-2005
Posts 42
|
|
|
|
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
Joined on 03-15-2006
Posts 44
|
|
|
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
Joined on 12-05-2005
Posts 42
|
|
|
|
Hi,
Thanks Yasir, I'll give it a try
Regards
Peter
|
|
|
|
|
Report
|
|
|
|
05-17-2006, 12:59 PM
|
theDentist
Joined on 12-05-2005
Posts 42
|
|
|
|
Hi
I've just completed the code, it works fine, no problems, thanks again Yasir. ![Big Smile [:D]](/emoticons/emotion-2.gif)
Regards
Peter
|
|
|
|
|
Report
|
|
|
|
05-19-2006, 12:17 PM
|
Yasir
Joined on 03-15-2006
Posts 44
|
|
|
You are always welcome dear :P
Best Regards
-Yasir
|
|
|
|
|
Report
|
|
|
|
|
Codersource.Net » Programming » MFC Programming » Re: FTP in MFC
|
|
| |
|