本文介绍了FtpSetCurrentDirectory给出错误997的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嗨。 i尝试在c ++中使用ftp命令。 将错误抛出为997 ..重叠I / O操作正在进行中。 代码:hi.i try to use the ftp commands in c++.Its throwing the error as 997.. "Overlapped I/O operation is in progress".Code:HINTERNET hHandle = InternetOpen("s", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_FLAG_ASYNC);if( hHandle != NULL ){printf("Success");}HINTERNET hFtpSession = InternetConnect( hHandle, "172.16.11.33", INTERNET_DEFAULT_FTP_PORT, "XXXX", "12345", INTERNET_SERVICE_FTP, NULL, NULL);if( hFtpSession != NULL ){printf("\nSucces:");}else{printf("\nFailed %d", GetLastError());}FtpPutFile(hFtpSession, "C:\\1.txt", " mylog.txt", FTP_TRANSFER_TYPE_BINARY, 0);char chTemp[1024] = "";DWORD dw = sizeof(chTemp);if( FtpGetCurrentDirectory(hFtpSession, chTemp,&dw) == TRUE ){printf("\nSuccess");}else{printf("\nError::%d", GetLastError());}推荐答案 这篇关于FtpSetCurrentDirectory给出错误997的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-18 20:39