仔细看MSDN:
INTERNET_FLAG_ASYNC Future operations on this object may fail with ERROR_IO_PENDING. A status callback will be made with INTERNET_STATUS_REQUEST_COMPLETE when the operation finishes. This callback is on a thread other than the one for the original request. You must call EnableStatusCallback to establish a status callback routine, or the functions will be completed synchronously. ----------------------------------------------------------------------------------------
程序员论坛白庄欢迎诸位程序员的光临指导:
http://www.baizhuang.net
INTERNET_FLAG_ASYNC Future operations on this object may fail with ERROR_IO_PENDING. A status callback will be made with INTERNET_STATUS_REQUEST_COMPLETE when the operation finishes. This callback is on a thread other than the one for the original request. You must call EnableStatusCallback to establish a status callback routine, or the functions will be completed synchronously. ----------------------------------------------------------------------------------------
程序员论坛白庄欢迎诸位程序员的光临指导:
http://www.baizhuang.net
解决方案 »
- Windows Image Acquisition(WIA)将设备上的图像保存到内存中?
- 求推荐本c++书籍!
- 关于CSerialPort与对话框的奇怪问题?
- 谁有Iphlpapi.h,Iphlpapi.lib ,急需,谢谢!
- 在线程中调用CSocket类问题???????????
- 如何灰掉CDialog右上角的"X"按钮
- 请问,能让自己的程序始终在最上面运行?怎么样才能,不允许用ALT+TAB和 CTRL+DEL+ALT,和ESC键呢?
- VC交流群
- 为什么我的VC6.0编译不管有多少错误都只提示一个错误
- 一个菜鸟的救命~~~~~~~~~的菜问题!怎样用ado查询数据并把他显示到屏幕上??最好是有原代码!!谢谢!
- 求救,关于视频捕捉问题!一定给分
- 求教:如何发送消息????
然后操作这个派生类.在dwFlags != INTERNET_FLAG_ASYNC时,一切正常,回调也正常。
当把它设为异步时,CInternetSession构造都不行。