|
-
September 18th, 2011, 03:14 PM
#11
Re: Problem With Internet WriteFile
 Originally Posted by Vanaj
If this function fails you do show a messagebox alerting the user to an error...but do not show/log the error...
Try using GetLastError() in the failure logic then insert that error into a string and displaying the exact error and not just a general error...just like you did for InternetConnect()
You can also lookup the function InternetGetLastResponseInfo() as this might be of some help in debugging the actual error.
Code:
if(!(InternetWriteFile(hRequest, pBuffer, dwBytesRead, &dwBytesWritten)))
{
MessageBox( 0, L"Error Write File", L"HTTP", MB_OK );
break;
}
Hi,
InternetWriteFile not shows any error.
I checked that by GetLastError() and not shows any error.
Regards,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|