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

    摘要: 比如第一次重传的时间是6秒,然后第2次是12秒......,最后几次是64秒.第一次超时的时间是通过测量 rtt和计算rto得出的(不清楚对否,请指教),但是我不明白的是第2次、第3次……的超时时间是怎样计算出来的,是简单的乘以2吗,请指教。 ......
 ·人人都要会的基础知识 求解    »显示摘要«
    摘要: java选择题 1.data sources 与drivermanager,都可以获得connection对象,有和区别_______________ ? a)data sources是同步的,drivetmanager是异步的. b)data sources是异步的,drivetmanager是同步的. c)data sources必须是从context对象查找jndi名获得的conne......


关于关LCD屏问题重问

很久以前我就问过这个问题,也去MS的WINCE新闻组里问过,都没有得到满意的答案.  
  网上一般都是采用Extescape的方法,当然这个也将是以后的标准方法.  
  我参照网上的代码写了一个函数.  
  //----------------------------------------------------------------------  
  //   SetVideoPower   -   Turns   on   or   off   the   display  
  //  
  int   SetVideoPower   (BOOL   fOn)   {  
          VIDEO_POWER_MANAGEMENT   vpm;  
          int   rc,   fQueryEsc;  
          HDC   hdc;  
         
          //   Get   the   display   dc.  
          hdc   =   GetDC   (NULL);  
          //   See   if   supported.  
          fQueryEsc   =   SETPOWERMANAGEMENT;  
          rc   =   ExtEscape   (hdc,   QUERYESCSUPPORT,   sizeof   (fQueryEsc),    
                                          (LPSTR)&fQueryEsc,   0,   0);        
          if   (rc   ==   0)   {  
                  //   No   support,   fail.  
                  ReleaseDC   (NULL,   hdc);  
                  return   -1;  
          }  
          //   Fill   in   the   power   management   structure.  
          vpm.Length   =   sizeof   (vpm);  
          vpm.DPMSVersion   =   1;  
          if   (fOn)    
                  vpm.PowerState   =   VideoPowerOn;  
          else  
                  vpm.PowerState   =   VideoPowerOff;  
         
          //   Tell   the   driver   to   turn   on   or   off   the   display.  
          rc   =   ExtEscape   (hdc,   SETPOWERMANAGEMENT,   sizeof   (vpm),    
                                          (LPSTR)&vpm,   0,   0);        
         
          //   Always   release   what   you   get.  
          ReleaseDC   (NULL,   hdc);  
          return   0;  
  }  
   
   
  每当执行到  
  rc   =   ExtEscape   (hdc,   QUERYESCSUPPORT,   sizeof   (fQueryEsc),    
                                          (LPSTR)&fQueryEsc,   0,   0);    
  时返回总是0,也就是说,我的显驱不支持ExtEscape这个函数.  
   
   
  请问,还有不用到这个函数的其它方法吗?  
  我想肯定是有的,比如对LCD端口的电源管理等.  
  哪位DX有好的方法没?  
 

NO.1   作者: tom1980

我给你发了短消息了


 ·eclipse vs jbuilder    »显示摘要«
    摘要: 刚才用google搜索了一下eclipse的相关文档有19,000,000篇之多,而jbuilder的文档只有800,000篇,他们相差有这么多吗?我们现在用的是jbuilder2005,据我了解很多人用的都是jbuilder啊 ......
» 本期热门文章:

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