Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WWIpstuff
Message
From
29/10/1998 21:21:53
 
 
To
26/10/1998 22:36:55
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00150707
Message ID:
00152576
Views:
23
>>>>I've been trying out Rick's wwipstuff class with FTP file transfers, and while I can download a file just fine, I get an error 12003 trying to upload. Probably something really simple, but I don't know what Win API error 12003 is.
>>>>Can you help? Better still is there a list of these codes somewhere ?
>>>>TIA
>>>
>>>OK, it's me talking to me again.
>>>
>>>Win API errors are listed in the MSDN library (of course) and error 12003 is an Internet Extended error which means there's a message available following an unsuccessful functino call. The docs then go on to say to use "InternetGetLastResponseInfo". Sheeese!
>>>So my problem now is - how do use this?
>>>BOOL InternetGetLastResponseInfo(OUT LPDWORD lpdeError, OUT LPSTR lpszbuffer, IN OUT LPDWORD lpdwBufferLength)
>>]
>>
>>No need to do this directly, wwIPSTuff does it for you;
>>
>>wwIPStuff::GetLastInternetError()
>
>I'm sorry, this is the wrong method... you want GetSystemErrormsg()

Hi again Erik,
Problem licked now.
I finally got the winiapi InternetGetLastResponseInfo() running and it returned the same value as the (undocumented) wwIPStuff::GetLastInternetError() - unfortunately all blanks. That was useful.
Anyway the 12003 error went away when I entered a username and password. To make this work the FTP server has to be configured to accept non-anonymous logins and the upload folder has to have FTP read AND write permission.

So it was mainly my abyssmal knowledge of FTP... :-(
Thanks for your help though.
Regards
Previous
Reply
Map
View

Click here to load this message in the networking platform