Article View: borland.public.cppbuilder.nativeapi
Article #15084Re: FTPCommand
From: Remy Lebeau (TeamB)
Date: Sat, 19 Jul 2003 21:55
Date: Sat, 19 Jul 2003 21:55
31 lines
2316 bytes
2316 bytes
"Boguslaw Fries" <B.Fries@luca-online.de> wrote in message
news:3f197694$1@newsgroups.borland.com...
> rc = FtpCommand( Hconnection, TRUE, FTP_TRANSFER_TYPE_ASCII, "DIR", 0,
> &hResponse );
How are you creating Hconnection in the first place? You should be using
InternetConnect() if you are not already.
> and value of error is 12003
12003 is ERROR_INTERNET_EXTENDED_ERROR:
"An extended error was returned from the server. This is typically a
string or buffer containing a verbose error message. Call
InternetGetLastResponseInfo to retrieve the error text."
> InternetGetLastResponseInfo(& drc, buff, &dwBytesRead );
> returns empty buff
What does your exact code look like for that call? Please always show
complete code snippets. How are you declaring drc, buff, and dwBytesRead?
How large is your buffer? Did you set dwBytesRead to the size of the buffer
before calling InternetGetLastResponseInfo()? Did drc receive any value?
What is the actual return value of InternetGetLastResponseInfo()? If
InternetGetLastResponseInfo() returns false, what is the return value of
GetLastError()?
Gambit
Technical Details
Message-ID:
<3f19bd24$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f15bd2f@newsgroups.borland.com> <3f15c6e2$2@newsgroups.borland.com> <3f168bd3$1@newsgroups.borland.com> <3f16d299$2@newsgroups.borland.com> <3f197694$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,92530846b9e5d1bb X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-19 15:12:09 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f15bd2f@newsgroups.borland.com> <3f15c6e2$2@newsgroups.borland.com> <3f168bd3$1@newsgroups.borland.com> <3f16d299$2@newsgroups.borland.com> <3f197694$1@newsgroups.borland.com> Subject: Re: FTPCommand Date: Sat, 19 Jul 2003 14:55:48 -0700 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f19bd24$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058651428 207.175.226.26 (19 Jul 2003 14:50:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail