General information
Category:
Third party products
>>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only