Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Cryptic Error Message from CFtp Date: Thu, 10 Nov 2011 18:40:13 +0100 Lines: 39 Message-ID: <9i2gnnFslgU1@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-15"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: individual.net QLPgyuq4332wu86+3+0+TAdTuI0COtpSB2f3ICc5jQUJGBFlk= Cancel-Lock: sha1:Q4OZTuI84O0VPkt3x+3oC8hNywI= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7600.16807 Xref: x330-a1.tempe.blueboxinc.net comp.lang.clipper.visual-objects:2416 Hi Harry, > In an application CFtp:OpenFile(cFile, ...) returns a NULL_PTR So > CFtp:Error is 0x00002EE3 (12003) and CFtp:ErrorMsg gives "Erweiterter > Fehler" (Extended Error). > > Only with debugging this I found the reason in cFile having the wrong > contence. > > Is there another way to find what "Extended Error" means more exactly? 12003 means ERROR_INTERNET_EXTENDED_ERROR according the docs http://msdn.microsoft.com/en-us/library/aa385465 you must call InternetGetLastResponseInfo() to retrieve the last error description or server response. http://msdn.microsoft.com/en-us/library/aa384717 taken from the InternetGetLastResponseInfo() remarks section : [...] The FTP protocols can return additional text information along with most errors. This extended error information can be retrieved by using the InternetGetLastResponseInfo function whenever GetLastError returns ERROR_INTERNET_EXTENDED_ERROR (occurring after an unsuccessful function call). [...] regards Karl-Heinz