请问高手:我写了一段程序,目的是检查本地某路径,如果有文件则将其利用FTP上传到FTP服务器上,但是当建立连接后执行上传时失败,错误是:Overlapped I/O operation is in progress。错误码:997。这是什么原因?请指教。代码如下:hInternetConnection = ::InternetOpen( "Microsoft Internet Explorer", INTERNET_OPEN_TYPE_PROXY, NULL,NULL,
INTERNET_FLAG_ASYNC);
if(hInternetConnection != (HINTERNET)NULL)
{
                   err = GeetLastError(); }
hFTPSession = ::InternetConnect( hInternetConnection, pFtpSite, INTERNET_INVALID_PORT_NUMBER , pUsername, pPassword, INTERNET_SERVICE_FTP, 0 ,
NULL);
if(hFTPSession == NULL)
{
err = GetLastError();
}
DWORD dwDir;
char pDir[256];
if(!::FtpGetCurrentDirectory(hFTPSession,pDir,&dwDir))
err = GetLasterror();//here err = 87
if(!::FtpSetCurrentDirectory(hFTPSession,g_szDestinationDir))
{
err = GetLastError();//here err= 997
}
for(int i = 0;i < nFileNum;i++)
{
    if(!::FtpPutFile(hFTPSession,
g_ntFiles[i].szLocalFileName,
g_ntFiles[i].szDesFileName,
FTP_TRANSFER_TYPE_BINARY,
1))
         {
          err = GetLastError();//here err = 997
}
}