If CHttpConnection::OpenRequest returns NULL how do I find out why
-
19-08-2019 - |
Question
c++ mfc
if CHttpConnection::OpenRequest returns a null what can I use to get the internet error. The mfc artical doesn't say what a bad responce looks like. I just said it returns a handle to a CHttpFile.
Solution
Did you see what is the error code returned by GetLastError() ? Get the error code and perform a error lookup (Tools->Error Lookup) to get the description about the code. Normally you will get the exact reason for the failure using this.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow