Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
c++ mfc
如果 CHttpConnection::OpenRequest 返回 null 我可以使用什么来获取 Internet 错误。mfc 文章并没有说明糟糕的响应是什么样的。我只是说它返回一个 CHttpFile 的句柄。
您看到 GetLastError() 返回的错误代码是什么了吗?获取错误代码并执行错误查找(工具->错误查找)以获取有关代码的描述。通常,您将使用它获得失败的确切原因。