🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15076

Re: FTPCommand

#15076
From: Boguslaw Fries
Date: Sat, 19 Jul 2003 16:49
33 lines
1749 bytes
Thank you
I made
typedef  BOOL ( WINAPI *FTPCOMMAND )( HINTERNET, BOOL, DWORD, LPCTSTR, DWORD
*, HINTERNET * );

Now I am experiencing witha new error:

bool rc;
DWORD drc;
DWORD dwBytesRead;
HINTERNET hResponse;
char    buff[ 2048 ];
...
    rc = FtpCommand( Hconnection, TRUE, FTP_TRANSFER_TYPE_ASCII, "DIR", 0,
&hResponse );
    if ( rc == false )
    {
        error = GetLastError( );
    }
and value of error is 12003

I carefully tested - Hconnection ist correct. I tried instead DIR use LIST .
No change
What is wrong?

Additionally
    InternetGetLastResponseInfo(& drc, buff, &dwBytesRead );
    returns empty buff

I have Windows 2000 and Borland 3.0
Best Regards

Boguslaw Fries
Technical Details
Message-ID: <3f197694$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f15bd2f@newsgroups.borland.com> <3f15c6e2$2@newsgroups.borland.com> <3f168bd3$1@newsgroups.borland.com> <3f16d299$2@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 09:52:05 PST
From: "Boguslaw Fries" <B.Fries@luca-online.de>
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>
Subject: Re: FTPCommand
Date: Sat, 19 Jul 2003 18:49:20 +0200
Lines: 36
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.1165
NNTP-Posting-Host: 80.130.219.112
Message-ID: <3f197694$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058633364 80.130.219.112 (19 Jul 2003 09:49:24 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail