int main(/*int argc, char **argv*/) { int retVal = 0; curl_global_init(CURL_GLOBAL_DEFAULT); retVal += GetWebFile(); /* Do not check the output of FTP socks5 cannot handle FTP yet */ GetFtpFile(); curl_global_cleanup(); return retVal; }
void CFTPDlg::GetAgpsFile() { if(m_agpsMode==4 || GetFtpFile()) { m_progress.SetPos(100); m_text.SetWindowText("Start to set the predicted ephemeris to target!"); FindEphemerisFile(); } // if(!SetEvent(m_hClose)) // { // DWORD error = GetLastError(); // } PostMessage(WM_CLOSE, 0, 0); }