View Single Post
  #9 (permalink)  
Old 03-27-2007, 03:36 PM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 297
Karpagarajan is on a distinguished road
Thumbs up Re: VC++ Tips & Tricks

Here is the sample FTP program in Visual C++

CFtpConnection* m_pFtpConnection;
m_pFtpConnection = m_pInetSession->GetFtpConnection(strServerName, szftpUserID, szftpPassword, nPort, FALSE);
// Do connection to the FTP server
if ( m_pFtpConnection->PutFile(lpExePath + "default.asp", "default.asp", FTP_TRANSFER_TYPE_BINARY, 1) == 1 )
AddLog("File : default.asp uploaded successfully.");
else
AddLog("Error in file :default.asp upload.");


thanks
__________________
Karpagarajan. R
Necessity is the mother of invention

Last edited by Booom : 08-09-2007 at 04:39 AM.
Reply With Quote