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.
|