﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-silverbullet</title><link>http://www.cppblog.com/yiyinkuang/</link><description /><language>zh-cn</language><lastBuildDate>Tue, 07 Apr 2026 04:21:02 GMT</lastBuildDate><pubDate>Tue, 07 Apr 2026 04:21:02 GMT</pubDate><ttl>60</ttl><item><title>WinNetCap1.2发布</title><link>http://www.cppblog.com/yiyinkuang/archive/2010/06/30/118967.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Wed, 30 Jun 2010 02:48:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2010/06/30/118967.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/118967.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2010/06/30/118967.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/118967.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/118967.html</trackback:ping><description><![CDATA[WinNetCap最新版1.2发布，同时发布32位和64位版，主要升级内容是支持无线网络数据的采集。<br>下载地址<a href="http://www.winnetcap.com/?p=23">http://www.winnetcap.com/?p=23</a><br><br> <img src ="http://www.cppblog.com/yiyinkuang/aggbug/118967.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2010-06-30 10:48 <a href="http://www.cppblog.com/yiyinkuang/archive/2010/06/30/118967.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WinNetCap1.1 64位发布</title><link>http://www.cppblog.com/yiyinkuang/archive/2010/05/12/115172.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Wed, 12 May 2010 03:21:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2010/05/12/115172.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/115172.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2010/05/12/115172.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/115172.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/115172.html</trackback:ping><description><![CDATA[<u><font style="BACKGROUND-COLOR: #f5f5f5" color=#cc0066>WinNetCap1.1 64位下载地址： </font></u><a href="http://www.winnetcap.com/?p=23">http://www.winnetcap.com/?p=23</a>
<img src ="http://www.cppblog.com/yiyinkuang/aggbug/115172.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2010-05-12 11:21 <a href="http://www.cppblog.com/yiyinkuang/archive/2010/05/12/115172.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WinNetCap 1.1新下载地址</title><link>http://www.cppblog.com/yiyinkuang/archive/2010/04/22/113247.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Thu, 22 Apr 2010 07:04:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2010/04/22/113247.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/113247.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2010/04/22/113247.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/113247.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/113247.html</trackback:ping><description><![CDATA[纳米盘不厚道，说下载了米人并提供msn账户上传就永久不删除，，，现在不到2个月就下载不了了<br>现传cpp 博客来，下载地址 <a href="http://www.cppblog.com/Files/yiyinkuang/WinNetCap-1.1-win32-setup.exe.zip">http://www.cppblog.com/Files/yiyinkuang/WinNetCap-1.1-win32-setup.exe.zip</a> 
<img src ="http://www.cppblog.com/yiyinkuang/aggbug/113247.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2010-04-22 15:04 <a href="http://www.cppblog.com/yiyinkuang/archive/2010/04/22/113247.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WinNetCap官方网站域名更为http://www.winnetcap.com</title><link>http://www.cppblog.com/yiyinkuang/archive/2010/04/06/111783.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Tue, 06 Apr 2010 12:59:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2010/04/06/111783.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/111783.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2010/04/06/111783.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/111783.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/111783.html</trackback:ping><description><![CDATA[<p>WinNetCap原来域名为<a href="http://www.im176.com/">http://www.im176.com</a>,现更改为<a href="http://www.winnetcap.com/">http://www.winnetcap.com</a></p>
<img src ="http://www.cppblog.com/yiyinkuang/aggbug/111783.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2010-04-06 20:59 <a href="http://www.cppblog.com/yiyinkuang/archive/2010/04/06/111783.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>UTF-8转GB2312源码</title><link>http://www.cppblog.com/yiyinkuang/archive/2010/03/12/109565.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Fri, 12 Mar 2010 13:37:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2010/03/12/109565.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/109565.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2010/03/12/109565.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/109565.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/109565.html</trackback:ping><description><![CDATA[<div class="entry">
<div class="announcement_post">
<p>&nbsp;&nbsp;&nbsp;    昨天发布的<a href="http://www.im176.com/?p=266">http协议嗅探插件源码</a>，里面有UTF-8转GB2312的一个函数BOOL UTF8_2_GB2312(const void * pIn,int inLen,char *pOut,int *outLen  )，这里介绍下。<br>
目前很多的中文网页都采用UTF-8或GB2312编码，UTF-8和GB2312都是字符集的编码，具体格式这里不做讨论，这里主要是看看如何用把UTF-8转为GB2312的。在vc的开发平台里UTF-8汉字会显示成乱码，需要转换成GB2312才能显示。<br>
大概的思路是这样的，先把UTF8转换成UNICODE，再把UNICODE转换成GB2312，为什么会这样想呢，因为windows
API里提供了多字节转宽字节（MultiByteToWideChar），宽字节转多字节（WideCharToMultiByte）的方法。好了，下
面是具体的API使用:MultiByteToWideChar(CP_UTF8, 0, (LPCTSTR)pIn,inLen, pWchar,
len),第一个参数是CP_UTF8，这样就把UTF8转成UNICODE了。你再用WideCharToMultiByte就能把UNICODE转成
GB2312了。<br>
如果你是在MFC下，，直接用CString构造就能把UNICODE转成GB2312，构造函数是有类型转换功能滴。。。</p>
<p><strong>函数源码，VC6编译通过：</strong><br>
BOOL UTF8_2_GB2312(const void * pIn,int inLen,char *pOut,int *outLen  )<br>
{<br>
ASSERT( ( (NULL==pIn) ||( NULL==pOut) ) );<br>
int len=MultiByteToWideChar(CP_UTF8, 0, (LPCTSTR)pIn, -1, NULL,0);<br>
wchar_t *pWchar = new wchar_t[len+1];<br>
if (NULL==pWchar)<br>
return FALSE;</p>
<p>    memset(pWchar,0,(len+1)* sizeof(wchar_t));<br>
MultiByteToWideChar(CP_UTF8, 0, (LPCTSTR)pIn,inLen, pWchar, len);<br>
CString str=CString(pWchar);<br>
ASSERT(str.GetLength()&gt;(*outLen));//not enough output buff<br>
*outLen = str.GetLength();<br>
memcpy(pOut,str.GetBuffer(0),*outLen);</p>
<p>    delete[]pWchar;<br>
return TRUE;<br>
}</p>
</div>
</div><img src ="http://www.cppblog.com/yiyinkuang/aggbug/109565.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2010-03-12 21:37 <a href="http://www.cppblog.com/yiyinkuang/archive/2010/03/12/109565.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何使用嗅探器WinNetCap提升上网速度</title><link>http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109455.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Thu, 11 Mar 2010 13:17:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109455.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/109455.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109455.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/109455.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/109455.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 请注意，本文并不能使你不花一两银子就把1M的带宽变为2M，，但是本文确实能大大提升你上网的速度，原理很简单，想想春运时的高速公路就知道。本文要告诉你的就是如何剔除其它车辆，高速公路你一个人独享。<br>&nbsp;&nbsp;<a href='http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109455.html'>阅读全文</a><img src ="http://www.cppblog.com/yiyinkuang/aggbug/109455.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2010-03-11 21:17 <a href="http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109455.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>http嗅探器源码（含gzip编码源码，utf-8转gb2312源码，vc6编译）</title><link>http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109452.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Thu, 11 Mar 2010 12:54:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109452.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/109452.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109452.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/109452.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/109452.html</trackback:ping><description><![CDATA[http嗅探器（HttpSinifferPlugin）是个基于WinNetCap的插件，此插件能嗅探远程端口为80的数据包，并能解析出http命令头，但未解析数据，对于从事http协议分析、web开发者是件很好的工具。此插件公布源码，编程爱好者可随意修改源码，HttpSinifferPlugin 0.1 基于NAPAPlugin0.2开发包MFC模式开发，源码中包含了gzip解码接口、utf-8转gb2312接口，开发者很容易使用这些接口解析http包体数据。HttpSinifferPlugin 0.1必须运行于娜帕平台1.0或WinNetCap1.1。下载地址：<a href="http://www.im176.com/?p=266">http://www.im176.com/?p=266</a>
<img src ="http://www.cppblog.com/yiyinkuang/aggbug/109452.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2010-03-11 20:54 <a href="http://www.cppblog.com/yiyinkuang/archive/2010/03/11/109452.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>qq协议分析源码支持QQ2007/2008/2009 </title><link>http://www.cppblog.com/yiyinkuang/archive/2009/09/27/im176.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Sun, 27 Sep 2009 13:47:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2009/09/27/im176.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/97404.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2009/09/27/im176.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/97404.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/97404.html</trackback:ping><description><![CDATA[qq协议分析源码支持QQ2007/2008/2009 ，下载链接<a href="http://www.im176.com/?p=84">http://www.im176.com/?p=84</a>
<img src ="http://www.cppblog.com/yiyinkuang/aggbug/97404.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2009-09-27 21:47 <a href="http://www.cppblog.com/yiyinkuang/archive/2009/09/27/im176.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>轻量级网络端口监控工具</title><link>http://www.cppblog.com/yiyinkuang/archive/2008/08/13/58698.html</link><dc:creator>kuan</dc:creator><author>kuan</author><pubDate>Wed, 13 Aug 2008 03:12:00 GMT</pubDate><guid>http://www.cppblog.com/yiyinkuang/archive/2008/08/13/58698.html</guid><wfw:comment>http://www.cppblog.com/yiyinkuang/comments/58698.html</wfw:comment><comments>http://www.cppblog.com/yiyinkuang/archive/2008/08/13/58698.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cppblog.com/yiyinkuang/comments/commentRss/58698.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yiyinkuang/services/trackbacks/58698.html</trackback:ping><description><![CDATA[自己写的，用于本地网络端口监控的小工具 <a href="http://www.cppblog.com/Files/yiyinkuang/NetPortMonitor.rar">http://www.cppblog.com/Files/yiyinkuang/NetPortMonitor.rar</a> 
<img src ="http://www.cppblog.com/yiyinkuang/aggbug/58698.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yiyinkuang/" target="_blank">kuan</a> 2008-08-13 11:12 <a href="http://www.cppblog.com/yiyinkuang/archive/2008/08/13/58698.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>