Click here to Skip to main content
15,889,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
vptech197-Feb-08 4:25
vptech197-Feb-08 4:25 
QuestionRe: what is the standard way to give file name in FtpOpenFile() Pin
David Crow7-Feb-08 4:32
David Crow7-Feb-08 4:32 
GeneralRe: what is the standard way to give file name in FtpOpenFile() [modified] Pin
vptech197-Feb-08 4:36
vptech197-Feb-08 4:36 
QuestionRe: what is the standard way to give file name in FtpOpenFile() Pin
David Crow7-Feb-08 4:48
David Crow7-Feb-08 4:48 
GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
vptech197-Feb-08 5:02
vptech197-Feb-08 5:02 
GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
David Crow7-Feb-08 5:09
David Crow7-Feb-08 5:09 
GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
vptech197-Feb-08 5:30
vptech197-Feb-08 5:30 
GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
David Crow7-Feb-08 5:39
David Crow7-Feb-08 5:39 
vptech19 wrote:
it is didn't work. if i use InternetGetLastResponseInfo() & ran the program means, it breaks the code.


So you have something like:

if (FtpOpenFile(hConnect, TEXT("C:\\good.txt"), GENERIC_READ, FTP_TRANSFER_TYPE_BINARY, NULL) == NULL)
{
    DWORD dwError = GetLastError();
    if (ERROR_INTERNET_EXTENDED_ERROR == dwError)
    {
        TCHAR szErrorText[256];
        DWORD dwSize = sizeof(szErrorText);
        InternetGetLastResponseInfo(&dwError, szErrorText, &dwSize); 
    }
}
vptech19 wrote:
But FtpOpenFile() returns the error code as 6 now.


FtpOpenFile() returns a handle to indicate success, and NULL to indicate failure. Since 6 is not NULL, I can only assume that FtpOpenFile() is not failing.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
Mark Salsbery7-Feb-08 6:00
Mark Salsbery7-Feb-08 6:00 
GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
vptech198-Feb-08 5:01
vptech198-Feb-08 5:01 
GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
Mark Salsbery8-Feb-08 6:45
Mark Salsbery8-Feb-08 6:45 
GeneralRe: what is the standard way to give file name in FtpOpenFile() Pin
vptech199-Feb-08 2:00
vptech199-Feb-08 2:00 
GeneralMCF ToolBar ( color tool bar , Vista Aero theme tool bar) help needed Pin
sarat7-Feb-08 0:01
sarat7-Feb-08 0:01 
GeneralRe: MCF ToolBar ( color tool bar , Vista Aero theme tool bar) help needed Pin
sarat8-Feb-08 0:19
sarat8-Feb-08 0:19 
GeneralBitmaps Pin
Gita.Bairavi6-Feb-08 23:58
Gita.Bairavi6-Feb-08 23:58 
GeneralRe: Bitmaps Pin
Waldermort7-Feb-08 1:12
Waldermort7-Feb-08 1:12 
QuestionRe: Bitmaps Pin
David Crow7-Feb-08 2:34
David Crow7-Feb-08 2:34 
GeneralRe: Bitmaps Pin
Waldermort7-Feb-08 2:40
Waldermort7-Feb-08 2:40 
GeneralRe: Bitmaps Pin
Gita.Bairavi7-Feb-08 16:46
Gita.Bairavi7-Feb-08 16:46 
QuestionCatch the scroll event? Pin
bosfan6-Feb-08 23:15
bosfan6-Feb-08 23:15 
AnswerRe: Catch the scroll event? Pin
Waldermort7-Feb-08 1:14
Waldermort7-Feb-08 1:14 
GeneralRe: Catch the scroll event? Pin
bosfan7-Feb-08 2:04
bosfan7-Feb-08 2:04 
GeneralRe: Catch the scroll event? Pin
Iain Clarke, Warrior Programmer7-Feb-08 2:16
Iain Clarke, Warrior Programmer7-Feb-08 2:16 
GeneralRe: Catch the scroll event? Pin
Hamid_RT10-Feb-08 21:49
Hamid_RT10-Feb-08 21:49 
GeneralFile rights after SQLConfigDataSource Pin
S. Becker6-Feb-08 22:43
S. Becker6-Feb-08 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.