当前位置:首页
开发技术指南» 文章正文
    引言:

 ·一个问题 在线等    »显示摘要«
    摘要: 我从网上下了一个留言板 其他功能都好 就是留言不能为空 至少得有一条 否则就出错了 请问怎么改啊 access数据库 怎么改成没有留言也可以(没有留言就显示“无内容”) 急 在先等 有哪为高手指点一下! ......
    摘要: 为了考高程,我选择学java,买了一本mcgraw-hill的java教材,就我所知常用的集成开发环境就是jb和j#好一点,当我装好j#时才发现我连里面最基础的控制语句都不会。我在网上书店找了半天才发现j#这方面的教材根本找不到(也许是很难找吧),所以请各位帮帮忙推荐一下。 我本人比较哈ms的,考虑到易用性和兼容性吧。 ......


如何让程序识别连接一个网站页面出错,自动返回错误信息。

如何让程序识别连接一个网站页面出错,自动返回错误信息。  
   
 

NO.1   作者: vcmute

CHttpFile::QueryInfoStatusCode  
  This   method   returns   the   status   code   associated   with   an   HTTP   request   and   places   it   in   the   supplied   dwStatusCode   parameter.   Use   this   method   only   after   a   successful   call   to   SendRequest   or   on   a   CHttpFile   object   successfully   created   by   OpenURL.  
   
  BOOL   QueryInfoStatusCode(    
  DWORD&   dwStatusCode   )    
  const;    
  Parameters  
  dwStatusCode    
  Specifies   a   reference   to   a   status   code.   Status   codes   indicate   the   success   or   failure   of   the   requested   event.   See   the   Remarks   section   for   a   selection   of   status   code   descriptions.    
  Return   Value  
  Nonzero   if   it   is   successful;   otherwise,   it   is   zero.   If   the   call   fails,   the   Window   CE   function   GetLastError   may   be   called   to   determine   the   cause   of   the   error.  
   
  Remarks  
  Call   this   method   to   get   the   status   code   associated   with   an   HTTP   request   and   place   it   in   the   supplied   dwStatusCode   parameter.   Use   this   method   only   after   a   successful   call   to   SendRequest   or   on   a   CHttpFile   object   successfully   created   by   OpenURL.  
   
  HTTP   status   codes   fall   into   groups   indicating   the   success   or   failure   of   the   request.   The   following   tables   outline   the   status   code   groups   and   the   most   common   HTTP   status   codes.  
   
  Group   Meaning    
  200-299   Success    
  300-399   Information    
  400-499   Request   error    
  500-599   Server   error    
 

NO.2   作者: vcmute

如果用SDK可用HttpQueryInfo  
   
  This   example   demonstrates   a   call   to   HttpQueryInfo.  
   
  bRet   =   HttpQueryInfo(hResource,   HTTP_QUERY_RAW_HEADERS_CRLF,  
                                        lpvSomeBuffer,   &dwSize,   NULL);  
 


 ·nero刻录软件不能运行.    »显示摘要«
    摘要: 我的机子是奔4 1.6的,512内存, 安装nero后,不能运行.只出现主程序窗口后过了几秒钟,主窗口就消失了.刚开始我以为是安装有错误,于是删除之后,重新安装,之后还是不能运行.后来系统提示虚拟内存太小,于是最大值调为256,可还是不能运行nero.是我的设的虚拟内存太小,还是有别的原因.请你们帮帮忙,谢谢各位. ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE