Article View: borland.public.cppbuilder.nativeapi
Article #8500Re: Downloading a file from FTP-server via API: FtpGetFile( )
From: Hans Galema
Date: Tue, 19 Oct 2004 18:42
Date: Tue, 19 Oct 2004 18:42
26 lines
1797 bytes
1797 bytes
Oren Halvani wrote:
> ..but something with the code himself seems
> to be wrong..
Yes. First why don't you format the text nicely so we can
easily see what goes on ?
> i get always the ShowMessage("problem...");
Please formyulate that more to the point: FtpGetFile() fails.
> HINTERNET handle_Session = InternetOpen(
You are not checking the returnvalue of InternetOpen().
And use the result in the next call
> handle_Connect = InternetConnect(handle_Session,
And again you do not check the value of handle_Connect now.
You could have a problem already here.
> if(FtpGetFile(handle_Connect,
Hans.
Technical Details
Message-ID:
<41755f35$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4175072a$1@newsgroups.borland.com> <417510a8$1@newsgroups.borland.com> <417513d7@newsgroups.borland.com> <417553a0$1@newsgroups.borland.com> <4175559b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8c7cb2fd84899d4c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 19 Oct 2004 20:42:28 +0200 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Downloading a file from FTP-server via API: FtpGetFile( ) References: <4175072a$1@newsgroups.borland.com> <417510a8$1@newsgroups.borland.com> <417513d7@newsgroups.borland.com> <417553a0$1@newsgroups.borland.com> <4175559b@newsgroups.borland.com> In-Reply-To: <4175559b@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <41755f35$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098211125 129.125.201.248 (19 Oct 2004 11:38:45 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail