Re: How to FTPCommand to upload file
From: Frank Hickman (fhickman_nosp_at_m_noblesoft.com)
Date: 02/18/04
- Next message: Nilesh: "How to Disable the close button in the CDialogbar"
- Previous message: Joseph M. Newcomer: "Re: HOWTO: Notify owner from a DLL?"
- In reply to: mjh: "How to FTPCommand to upload file"
- Next in thread: Frank Hickman: "Re: How to FTPCommand to upload file"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Feb 2004 02:13:20 -0500
Perhaps you should try to STOR the file instead of APPE it.
HTH
--
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
"mjh" <jongh@21cn.com> wrote in message
news:OHRsoZd9DHA.4088@tk2msftngp13.phx.gbl...
> Hi, In FTP server, the size of file always zero
>
>
> CHAR szTemp[256];
> wsprintf (szTemp, "APPE %s", "test.txt");
>
> BOOL bRet = FtpCommand(hConnection,
> TRUE,
> FTP_TRANSFER_TYPE_ASCII,
> szTemp,
> 0,
> &hResponse);// The handle to read the response
> if (!bRet) {
> cout << "FtpCommand failed, error: " << GetLastError() << endl;
> return;
> }
>
>
- Next message: Nilesh: "How to Disable the close button in the CDialogbar"
- Previous message: Joseph M. Newcomer: "Re: HOWTO: Notify owner from a DLL?"
- In reply to: mjh: "How to FTPCommand to upload file"
- Next in thread: Frank Hickman: "Re: How to FTPCommand to upload file"
- Messages sorted by: [ date ] [ thread ]