18,363
社区成员




CInternetFile *ftpfile = NULL;
//EnterCriticalSection(&CriticalSection);
try{
if(!(ftpfile = (pConn->OpenFile(strServer,GENERIC_READ,FTP_TRANSFER_TYPE_BINARY))))
{
ftpfile->Close();
return false;
}
}
catch(CInternetException *pEx)
{
//获取错误
TCHAR szError[1024];
if(pEx->GetErrorMessage(szError,1024))
{
//log.PrintLog(szError);
}
//log.PrintLog(_T("There was an exception"));
pEx->Delete();
pConn = NULL;
return false;
}