会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Kevin Gao
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2012年1月3日
C#调用Win32 的API函数--User32.dll
摘要: Win32的API函数是微软自己的东西,可以直接在C#中直接调用,在做WinForm时还是很有帮助的。有时候我们之直接调用Win32 的API,可以很高效的实现想要的效果。 using System; using System.C...
阅读全文
posted @ 2012-01-03 15:11 Kevin Gao
阅读(34)
评论(0)
推荐(0)
C#调用Win32 的API函数--User32.dll
摘要: Win32的API函数是微软自己的东西,可以直接在C#中直接调用,在做WinForm时还是很有帮助的。有时候我们之直接调用Win32 的API,可以很高效的实现想要的效果。usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Runtime.InteropServices;namespaceWindowsAPI{classCSharp_Win32Api{#regionUser32.dll函数///<summary>///该函数检索一指定窗口的客户区域或整个屏
阅读全文
posted @ 2012-01-03 15:10 Kevin Gao
阅读(10171)
评论(2)
推荐(4)
C#解析HTML
摘要: 在搜索引擎的开发中,我们需要对网页的Html内容进行检索,难免的就需要对Html进行解析。拆分每一个节点并且获取节点间的内容。此文介绍两种C#解析Html的方法。 第一种方法: 用System.Net.WebClient下载Web Page存到本地文件...
阅读全文
posted @ 2012-01-03 15:07 Kevin Gao
阅读(26)
评论(0)
推荐(0)
C#解析HTML
摘要: 在搜索引擎的开发中,我们需要对网页的Html内容进行检索,难免的就需要对Html进行解析。拆分每一个节点并且获取节点间的内容。此文介绍两种C#解析Html的方法。第一种方法:用System.Net.WebClient下载Web Page存到本地文件或者String中,用正则表达式来分析。这个方法可以用在Web Crawler等需要分析很多Web Page的应用中。估计这也是大家最直接,最容易想到的一个方法。转自网上的一个实例:所有的href都抽取出来:usingSystem;usingSystem.Net;usingSystem.Text;usingSystem.Text.RegularExp
阅读全文
posted @ 2012-01-03 15:06 Kevin Gao
阅读(297)
评论(0)
推荐(0)