If CHttpConnection :: OpenRequest returns NULL, how do I know why

C ++ mk

if CHttpConnection :: OpenRequest returns null, which I can use to get internet error. The mfc artical doesn't say what a bad answer looks like. I just said that it returns a handle in CHttpFile.

0


source to share


1 answer


Have you seen what the error code returned by GetLastError () is? Get the error code and search for errors (Tools-> Error Lookup) to get a description of the code. Usually you will get the exact reason for the failure using this.



+1


source







All Articles