posts - 119, comments - 71, trackbacks - 5, articles - 0
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

09 2011 档案

摘要: IntroductionThis is a simple example about using OpenGL in CSharp application. The Workflow of Using OpenGLCreate OpenGL with a specific area. Create a DIB (Device independent bitmap)Create OpenGL rendering context and set the deviceMake the OpenGL render context the current rendering contextNote: W阅读全文

posted @ 2011-09-27 17:11 张冰 阅读(13) | 评论 (0) 编辑 |

摘要: -C#特别适合于构造蜘蛛程序,这是因为它已经内置了HTTP访问和多线程的能力,而这两种能力对于蜘蛛程序来说都是非常关键的。下面是构造一个蜘蛛程序要解决的关键问题: ⑴ HTML分析:需要某种HTML解析器来分析蜘蛛程序遇到的每一个页面。 ⑵ 页面处理:需要处理每一个下载得到的页面。下载得到的内容可能要保存到磁盘,或者进一步分析处理。 ⑶ 多线程:只有拥有多线程能力,蜘蛛程序才能真正做到高效。 ⑷ 确定何时完成:不要小看这个问题,确定任务是否已经完成并不简单,尤其是在多线程环境下。 一、HTML解析本文提供的HTML解析器由ParseHTML类实现,使用非常方便:首先创建该类的一个实例...阅读全文

posted @ 2011-09-26 11:00 张冰 阅读(34) | 评论 (0) 编辑 |