I'm trying to find out how to get the extended information from a ftp server if the error that is returned is 12003. I know that I'm supposed to use the internetgetlastresponseinfo function, but I don't know how to handle the string that is returned. Here is the code segment that deals with this.
TIACode:DWORD errNo = 0, errSize = 0; CString errDesc = ""; ... errNo = GetLastError(); switch(errNo) { case 0: printf("No error found"); break; case 12003: { InternetGetLastResponseInfo(&errNo, (LPTSTR) &errDesc, &errSize); printf("Error 12003\nExtended information:\n%s\n", errDesc); break; } case 12031: printf("Server was busy, please try again later"); break; case 12007: printf("Firewall blocking connection to ftp server, please unblock and try again"); break; default: break; }



LinkBack URL
About LinkBacks


