Avatar of VapiSoft
VapiSoft

asked on 

CInternetFile OpenFile

I am trying to get information (length, time) of a file in an FTP server.

I do the following (after I connect and get the pInternetFile):
CInternetFile *pInternetFile;
pInternetFile = ftpConnection->OpenFile(path, GENERIC_READ, FTP_TRANSFER_TYPE_BINARY);
I get pInternetFile, but the m_hFile=0 and I cannot get:
pInternetFile->GetStatus(s);
But I cac do:
pInternetFile->Write
and
pInternetFile->Read







System ProgrammingProgramming Languages-OtherC++

Avatar of undefined
Last Comment
alb66

8/22/2022 - Mon