<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PKILL.info &#187; C</title>
	<atom:link href="http://pkill.info/b/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://pkill.info/b</link>
	<description>Tutorials and tips</description>
	<lastBuildDate>Wed, 08 Sep 2010 06:08:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Vim Formatting C/C++ Code</title>
		<link>http://pkill.info/b/1419/vim-formatting-cc-code/</link>
		<comments>http://pkill.info/b/1419/vim-formatting-cc-code/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 13:55:14 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/?p=1419</guid>
		<description><![CDATA[Vim provides some basic formatting commands. A combination of these commands with the editing commands will make the programmer happy. A list of basic text formatting commands in Vim: = is an operator that formats/indents text. i{ is a text object that specifies the surrounding code block. It should be used together with v, =, [...]

<b>Read more:</b><ul><li><a href='http://pkill.info/b/324/vim-cgdb/' rel='bookmark' title='Permanent Link: vim + cgdb'>vim + cgdb</a></li>
<li><a href='http://pkill.info/b/731/how-to-wrap-and-not-wrap-lines-in-vim/' rel='bookmark' title='Permanent Link: How to wrap and NOT wrap lines in vim'>How to wrap and NOT wrap lines in vim</a></li>
<li><a href='http://pkill.info/b/398/my-vim-emacs-configuration-files/' rel='bookmark' title='Permanent Link: My vim emacs configuration files'>My vim emacs configuration files</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Vim provides some basic formatting commands. A combination of these commands with the editing commands will make the programmer happy.</p>
<p>A list of basic text formatting commands in Vim:</p>
<ul>
<li><strong><tt>=</tt></strong> is an operator that formats/indents text.</li>
<li><strong><tt>i{</tt></strong> is a text object that specifies the surrounding code block. It should be used together with <strong><em>v</em></strong>, <strong><em>=</em></strong>, etc.</li>
</ul>
<p>Some basic but useful operation that are combination of the two basic ones above:</p>
<ul>
<li><strong><tt>vi{</tt></strong> visually selects the inner code block around the cursor.</li>
<li><strong><tt>=i{</tt></strong> formats the code block.</li>
<li><strong><tt>=2i{</tt></strong> formats the current block and the block around it.</li>
<li><strong><tt>==</tt></strong> formats current line.</li>
</ul>
<p>The method to format a block of C/C++ or Java code:</p>
<ul>
<li>First, go to the start point of codes to be formatted, then press <strong><em>v</em></strong> to start selection.</li>
<li>Second, go to the end point.</li>
<li>Third, press <strong><em>=</em></strong> to format the codes that have been selected. All braces and indentations will be aligned.</li>
</ul>
<p>A short way to format the whole buffer:</p>
<ul>
<li>gg=G</li>
</ul>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/324/vim-cgdb/' rel='bookmark' title='Permanent Link: vim + cgdb'>vim + cgdb</a></li>
<li><a href='http://pkill.info/b/731/how-to-wrap-and-not-wrap-lines-in-vim/' rel='bookmark' title='Permanent Link: How to wrap and NOT wrap lines in vim'>How to wrap and NOT wrap lines in vim</a></li>
<li><a href='http://pkill.info/b/398/my-vim-emacs-configuration-files/' rel='bookmark' title='Permanent Link: My vim emacs configuration files'>My vim emacs configuration files</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/1419/vim-formatting-cc-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The C Programming Style that I Follow</title>
		<link>http://pkill.info/b/1352/the-c-programming-style-that-i-follow/</link>
		<comments>http://pkill.info/b/1352/the-c-programming-style-that-i-follow/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 07:54:53 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/?p=1352</guid>
		<description><![CDATA[C programming language allow any style the programmer like. A good style can make the code easy to understand and maintain, while a bad style will make the project a nightmare. This is the C programming styles that I follows: 1. For each source file (*.c), there is a header file (*.h) that have the [...]

<b>Read more:</b><ul><li><a href='http://pkill.info/b/108/c-style/' rel='bookmark' title='Permanent Link: C++ Style'>C++ Style</a></li>
<li><a href='http://pkill.info/b/1419/vim-formatting-cc-code/' rel='bookmark' title='Permanent Link: Vim Formatting C/C++ Code'>Vim Formatting C/C++ Code</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>C programming language allow any style the programmer like. A good style can make the code easy to understand and maintain, while a bad style will make the project a nightmare.</p>
<p>This is the C programming styles that I follows:</p>
<p><strong>1. For each source file (*.c), there is a header file (*.h) that have the same name with it as it&#8217;s interface.</strong></p>
<p><strong>2. The header file starts with</strong></p>
<pre>#ifndef _HEADER_NAME_H
#  define  _HEADER_NAME_H
</pre>
<p><strong> And end with:</strong></p>
<pre>#endif // _HEADER_NAME_H</pre>
<p><strong>3. #include is only used in source file usually.  ONLY when it is really necessary, #include can be used in header file.</strong></p>
<p><strong>4. There is NO definition in header file. </strong></p>
<p><strong>5. Global variable defined in source file that is visible outside the module is declared as extern variable in the relevant header file. Global variable is used only when it is really necessary.</strong></p>
<p>An example that follow this style is <a href="http://github.com/zma/mrcc">mrcc</a>.</p>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/108/c-style/' rel='bookmark' title='Permanent Link: C++ Style'>C++ Style</a></li>
<li><a href='http://pkill.info/b/1419/vim-formatting-cc-code/' rel='bookmark' title='Permanent Link: Vim Formatting C/C++ Code'>Vim Formatting C/C++ Code</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/1352/the-c-programming-style-that-i-follow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A C++/Java programmer&#8217;s introduction to Objective Caml</title>
		<link>http://pkill.info/b/135/a-cjava-programmers-introduction-to-objective-caml/</link>
		<comments>http://pkill.info/b/135/a-cjava-programmers-introduction-to-objective-caml/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 07:50:00 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[programming.ocaml]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/a-cjava-programmers-introduction-to-objective-caml/</guid>
		<description><![CDATA[A very very good introduction to OCaml: A C++/Java programmer&#8217;s introduction to Objective Caml Read more:Java与C++在语言方面上的不同 The C Programming Style that I Follow Win32下COM口通信控制

<b>Read more:</b><ul><li><a href='http://pkill.info/b/86/java%e4%b8%8ec%e5%9c%a8%e8%af%ad%e8%a8%80%e6%96%b9%e9%9d%a2%e4%b8%8a%e7%9a%84%e4%b8%8d%e5%90%8c/' rel='bookmark' title='Permanent Link: Java与C++在语言方面上的不同'>Java与C++在语言方面上的不同</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>A very very good introduction to OCaml:</p>
<p><a href="http://caml.inria.fr/pub/old_caml_site/FAQ/stephan.html">A C++/Java programmer&#8217;s introduction to Objective Caml</a></p>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/86/java%e4%b8%8ec%e5%9c%a8%e8%af%ad%e8%a8%80%e6%96%b9%e9%9d%a2%e4%b8%8a%e7%9a%84%e4%b8%8d%e5%90%8c/' rel='bookmark' title='Permanent Link: Java与C++在语言方面上的不同'>Java与C++在语言方面上的不同</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/135/a-cjava-programmers-introduction-to-objective-caml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>两个不错的C++ reference网站</title>
		<link>http://pkill.info/b/134/%e4%b8%a4%e4%b8%aa%e4%b8%8d%e9%94%99%e7%9a%84c-reference%e7%bd%91%e7%ab%99/</link>
		<comments>http://pkill.info/b/134/%e4%b8%a4%e4%b8%aa%e4%b8%8d%e9%94%99%e7%9a%84c-reference%e7%bd%91%e7%ab%99/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 04:07:00 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/%e4%b8%a4%e4%b8%aa%e4%b8%8d%e9%94%99%e7%9a%84c-reference%e7%bd%91%e7%ab%99/</guid>
		<description><![CDATA[http://www.cplusplus.com/reference/ http://www.cppreference.com/wiki/ Read more:Vim Formatting C/C++ Code The C Programming Style that I Follow Win32下COM口通信控制

<b>Read more:</b><ul><li><a href='http://pkill.info/b/1419/vim-formatting-cc-code/' rel='bookmark' title='Permanent Link: Vim Formatting C/C++ Code'>Vim Formatting C/C++ Code</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cplusplus.com/reference/">http://www.cplusplus.com/reference/</a></p>
<p><a href="http://www.cppreference.com/wiki/">http://www.cppreference.com/wiki/</a></p>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/1419/vim-formatting-cc-code/' rel='bookmark' title='Permanent Link: Vim Formatting C/C++ Code'>Vim Formatting C/C++ Code</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/134/%e4%b8%a4%e4%b8%aa%e4%b8%8d%e9%94%99%e7%9a%84c-reference%e7%bd%91%e7%ab%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MFC程序使用系统风格界面</title>
		<link>http://pkill.info/b/132/mfc%e7%a8%8b%e5%ba%8f%e4%bd%bf%e7%94%a8%e7%b3%bb%e7%bb%9f%e9%a3%8e%e6%a0%bc%e7%95%8c%e9%9d%a2/</link>
		<comments>http://pkill.info/b/132/mfc%e7%a8%8b%e5%ba%8f%e4%bd%bf%e7%94%a8%e7%b3%bb%e7%bb%9f%e9%a3%8e%e6%a0%bc%e7%95%8c%e9%9d%a2/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 06:05:00 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[mfc]]></category>
		<category><![CDATA[vc]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/mfc%e7%a8%8b%e5%ba%8f%e4%bd%bf%e7%94%a8%e7%b3%bb%e7%bb%9f%e9%a3%8e%e6%a0%bc%e7%95%8c%e9%9d%a2/</guid>
		<description><![CDATA[VC6默认编译出来的程序在XP下Luma风格下运行也是Windows的经典界面, 有损界面的美观与统一. VC2008默认设置下如果不是使用的unicode也是如此. 本文给出使VC6和VC2008可以编译出使用系统界面风格的解决方案. 1. 使VC6编译出使用系统风格的程序 1) 创建一个.manifest文件的资源. 在res/文件夹下创建一个跟以程序名加.manifest的文件, 如果程序为test.exe, 则创建test.exe.manifest 文件内容如下: http://sites.google.com/site/ericzqma/developmentfiles/ResultCollector.exe.manifest?attredirects=0 注意要使用utf-8编码保存。 2) 将新定义的资源加入到.rc2文件中, 类型设为24. 打开res/文件夹下的.rc2文件, 在其中加入如下定义: 1 24 MOVEABLE PURE "res/test.exe.manifest" 其中的文件地址按1)步中修改的设置即可. 之后编译即可, 为了使程序界面可能充分利用系统的界面特性, 可以将界面字体设置为TrueType类型的, 利用Windows XP等系统的屏幕字体平滑特性. 2. 使VC2008编译出使用系统风格的程序 在VC2008下就比较简单了, 如果程序字符集使用unicode则默认就是使用系统界面风格的, 如果选择其它的类型, 则编辑下stdafx.h即可. 最后面部分找到这么一段: #ifdef _UNICODE #if defined _M_IX86 #pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'"") #elif defined _M_IA64 #pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' [...]

<b>Read more:</b><ul><li><a href='http://pkill.info/b/169/mfc%e4%b8%ad%e5%b1%8f%e8%94%bdesc%e5%92%8c%e5%9b%9e%e8%bd%a6%e5%85%b3%e9%97%ad%e5%af%b9%e8%af%9d%e6%a1%86/' rel='bookmark' title='Permanent Link: MFC中屏蔽ESC和回车关闭对话框'>MFC中屏蔽ESC和回车关闭对话框</a></li>
<li><a href='http://pkill.info/b/168/%e4%bd%bf%e7%94%a8xp%e9%a3%8e%e6%a0%bc%e7%9a%84%e6%89%93%e5%bc%80%e6%96%87%e4%bb%b6%e5%af%b9%e8%af%9d%e6%a1%86/' rel='bookmark' title='Permanent Link: 使用XP风格的打开文件对话框'>使用XP风格的打开文件对话框</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>VC6默认编译出来的程序在XP下Luma风格下运行也是Windows的经典界面, 有损界面的美观与统一. VC2008默认设置下如果不是使用的unicode也是如此. 本文给出使VC6和VC2008可以编译出使用系统界面风格的解决方案.</p>
<p>1. 使VC6编译出使用系统风格的程序</p>
<p>1) 创建一个.manifest文件的资源.<br />
在res/文件夹下创建一个跟以程序名加.manifest的文件, 如果程序为test.exe, 则创建test.exe.manifest<br />
文件内容如下:<br />
<a href="http://sites.google.com/site/ericzqma/developmentfiles/ResultCollector.exe.manifest?attredirects=0" target="_blank">http://sites.google.com/site/ericzqma/developmentfiles/ResultCollector.exe.manifest?attredirects=0</a><br />
注意要使用utf-8编码保存。</p>
<p>2) 将新定义的资源加入到.rc2文件中, 类型设为24.<br />
打开res/文件夹下的.rc2文件, 在其中加入如下定义:</p>
<pre>1 24 MOVEABLE PURE "res/test.exe.manifest"</pre>
<p>其中的文件地址按1)步中修改的设置即可.</p>
<p>之后编译即可, 为了使程序界面可能充分利用系统的界面特性, 可以将界面字体设置为TrueType类型的, 利用Windows XP等系统的屏幕字体平滑特性.</p>
<p>2. 使VC2008编译出使用系统风格的程序</p>
<p>在VC2008下就比较简单了, 如果程序字符集使用unicode则默认就是使用系统界面风格的, 如果选择其它的类型, 则编辑下stdafx.h即可.</p>
<p>最后面部分找到这么一段:</p>
<pre>#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'"")
#else
#pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"")
#endif
#endif
</pre>
<p>修改为如下即可:</p>
<pre>
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'"")
#else
#pragma comment(linker,"/manifestdependency:"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"")
#endif</pre>
<p><span style="font-size: x-small;">Updated on 7 Mar. 2010. Format the code.</span></p>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/169/mfc%e4%b8%ad%e5%b1%8f%e8%94%bdesc%e5%92%8c%e5%9b%9e%e8%bd%a6%e5%85%b3%e9%97%ad%e5%af%b9%e8%af%9d%e6%a1%86/' rel='bookmark' title='Permanent Link: MFC中屏蔽ESC和回车关闭对话框'>MFC中屏蔽ESC和回车关闭对话框</a></li>
<li><a href='http://pkill.info/b/168/%e4%bd%bf%e7%94%a8xp%e9%a3%8e%e6%a0%bc%e7%9a%84%e6%89%93%e5%bc%80%e6%96%87%e4%bb%b6%e5%af%b9%e8%af%9d%e6%a1%86/' rel='bookmark' title='Permanent Link: 使用XP风格的打开文件对话框'>使用XP风格的打开文件对话框</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/132/mfc%e7%a8%8b%e5%ba%8f%e4%bd%bf%e7%94%a8%e7%b3%bb%e7%bb%9f%e9%a3%8e%e6%a0%bc%e7%95%8c%e9%9d%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert string to int and reverse</title>
		<link>http://pkill.info/b/131/convert-string-to-int-and-reverse/</link>
		<comments>http://pkill.info/b/131/convert-string-to-int-and-reverse/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 05:42:00 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/convert-string-to-int-and-reverse/</guid>
		<description><![CDATA[Convert string to int 1. The C way Use C standard library #include &#60;cstdlib&#62; #include &#60;string&#62; std::string text = "123"; int number = std::atoi (text.c_str ()); if (errno == ERANGE) //or may be std::errno { // the number is too big/small // number = LONG_MAX or LONG_MIN } else if (errno == ????) //maybe EINVAL, [...]

<b>Read more:</b><ul><li><a href='http://pkill.info/b/1419/vim-formatting-cc-code/' rel='bookmark' title='Permanent Link: Vim Formatting C/C++ Code'>Vim Formatting C/C++ Code</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<h3>Convert <em>string</em> to <em>int</em></h3>
<h4>1. The C way</h4>
<p>Use C standard library</p>
<pre>#include &lt;cstdlib&gt;
#include &lt;string&gt;
std::string text = "123";
int number = std::atoi (text.c_str ());
if (errno == ERANGE)
 //or may be std::errno
{
   // the number is too big/small
   // number = LONG_MAX or LONG_MIN
}
else if (errno == ????)
//maybe EINVAL, E2BIG or EDOM (or ERANGE again)
{
   //unable to convert to a number
}
</pre>
<h4>2. The C++ way</h4>
<p>Use C++ standard library</p>
<pre>#include &lt;sstream&gt;
#include &lt;string&gt;
std::string text = "123";
int number;
std::istringstream iss (text);
iss &gt;&gt; number;
if (!iss.good ()) {
   //something happened
}
</pre>
<h3>Convert <em>int</em> to <em>string</em></h3>
<h4>1. The C way</h4>
<p>Use C standard library</p>
<pre>#include &lt;stdio.h&gt;

  const char base_string[] = "base_string";
  char out_string [MAX_BUFFER_SIZE];
  int number = 123;
  sprintf(out_string, "%s%d", base_string, number);
  printf("out_string = \"%s\"\n", out_string);
</pre>
<h4>2. The C++ way</h4>
<p>Use C++ standard library</p>
<pre>#include &lt;sstream&gt;

  int i = 123;
  std::string out_string;
  std::stringstream ss;
  ss &lt;&lt; i;
  out_string = ss.str();
</pre>
<p>References:</p>
<p>http://www.gamedev.net/community/forums/topic.asp?topic_id=312790</p>
<p>http://www.daniweb.com/forums/thread11049.html</p>
<p>http://notfaq.wordpress.com/2006/08/30/c-convert-int-to-string/</p>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/1419/vim-formatting-cc-code/' rel='bookmark' title='Permanent Link: Vim Formatting C/C++ Code'>Vim Formatting C/C++ Code</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/131/convert-string-to-int-and-reverse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win32 文件操作 示例代码</title>
		<link>http://pkill.info/b/393/win32-%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c-%e7%a4%ba%e4%be%8b%e4%bb%a3%e7%a0%81/</link>
		<comments>http://pkill.info/b/393/win32-%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c-%e7%a4%ba%e4%be%8b%e4%bb%a3%e7%a0%81/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 19:48:27 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[win32]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/win32-%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c-%e7%a4%ba%e4%be%8b%e4%bb%a3%e7%a0%81/</guid>
		<description><![CDATA[void show(const char *folderPath) { CFileFind finder; CString path(folderPath); path += "\*.*"; BOOL bWorking = finder.FindFile(path); while (bWorking) { bWorking = finder.FindNextFile(); cout &#60;&#60; finder.GetFilePath() &#60;&#60; endl; } finder.Close(); } bool CopyFolder(const char *srcFolderPath, const char *dstFolderPath) { CFileFind srcFinder, dstFinder; CString src(srcFolderPath); CString dst(dstFolderPath); if (!CreateDirectory(dst.GetBuffer(), 0)) return false; CFileFind finder; BOOL bWorking = [...]

<b>Read more:</b><ul><li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
<li><a href='http://pkill.info/b/1419/vim-formatting-cc-code/' rel='bookmark' title='Permanent Link: Vim Formatting C/C++ Code'>Vim Formatting C/C++ Code</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<pre>void show(const char *folderPath)
{
    CFileFind finder;
    CString path(folderPath);
    path += "\*.*";
    BOOL bWorking = finder.FindFile(path);
    while (bWorking) {
        bWorking = finder.FindNextFile();
        cout &lt;&lt; finder.GetFilePath() &lt;&lt; endl;
    }
    finder.Close();
}
bool CopyFolder(const char *srcFolderPath, const char *dstFolderPath)
{
    CFileFind srcFinder, dstFinder;
    CString src(srcFolderPath);
    CString dst(dstFolderPath);
    if (!CreateDirectory(dst.GetBuffer(), 0)) return false;
    CFileFind finder;
    BOOL bWorking = finder.FindFile(src + "\*.*");
    while (bWorking) {
        bWorking = finder.FindNextFile();
        if (finder.IsDots()) continue;
        CString fileName = finder.GetFileName();
        if (finder.IsDirectory()) {
            if (!CopyFolder((src + "\" + fileName).GetBuffer(), dst + "\" + fileName)) {
                finder.Close();
                return false;
            }
        }
        else {
            if (!CopyFile(src + "\" + fileName, dst + "\" + fileName, 0)) {
                finder.Close();
                return false;
            }
        }
    }
    finder.Close();
    return true;
}
bool DeleteFolder(const char *folderName)
{
    CString path(folderName);
    CFileFind finder;
    BOOL bWorking = finder.FindFile(path + "\*.*");
    while (bWorking) {
        bWorking = finder.FindNextFile();
        if (finder.IsDots()) continue;
        CString fileName = finder.GetFileName();
        if (finder.IsDirectory()) {
            if (!DeleteFolder((path + "\" + fileName).GetBuffer())) {
                finder.Close();
                return false;
            }
        }
        else {
            if (!DeleteFile((path + "\" + fileName).GetBuffer())) {
                finder.Close();
                return false;
            }
        }
    }
    finder.Close();
    return RemoveDirectory(folderName);
}</pre>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
<li><a href='http://pkill.info/b/1419/vim-formatting-cc-code/' rel='bookmark' title='Permanent Link: Vim Formatting C/C++ Code'>Vim Formatting C/C++ Code</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/393/win32-%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c-%e7%a4%ba%e4%be%8b%e4%bb%a3%e7%a0%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win32下COM口通信控制</title>
		<link>http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/</link>
		<comments>http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 19:47:02 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[win32]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/</guid>
		<description><![CDATA[这段时间做兼职帮做了一个COM口单片机监控控制程序, 学习了些Win32下COM口的控制. 下面是与COM口控制有关的部分示例代码. //打开COM1 hCOM=CreateFile( "COM1",GENERIC_READ&#124;GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL); if (hCOM==INVALID_HANDLE_VALUE) { MessageBox( GetForegroundWindow(),"无法打开串口！","操作失败",MB_ICONINFORMATION); return; } //设置DCB DCB dcb; if (!GetCommState(hCOM,&#38;dcb)) { MessageBox( GetForegroundWindow(),"无法获取串口状态！","操作失败",MB_ICONINFORMATION); hCOM=INVALID_HANDLE_VALUE; return; } dcb.BaudRate=9600; dcb.ByteSize=8; dcb.Parity=NOPARITY; dcb.StopBits=ONESTOPBIT; if (!SetCommState(hCOM,&#38;dcb)) { MessageBox( GetForegroundWindow(),"无法设置串口状态！","操作失败",MB_ICONINFORMATION); hCOM=INVALID_HANDLE_VALUE; return; } //设置COMMTIMEOUTS COMMTIMEOUTS communication_timeout; communication_timeout.ReadIntervalTimeout=MAXDWORD; communication_timeout.ReadTotalTimeoutMultiplier=0; communication_timeout.ReadTotalTimeoutConstant=0; communication_timeout.WriteTotalTimeoutMultiplier=0; communication_timeout.WriteTotalTimeoutConstant=0; if (!SetCommTimeouts(hCOM,&#38;communication_timeout)) { MessageBox( GetForegroundWindow(),"无法设置串口超时！","操作失败",MB_ICONINFORMATION); hCOM=INVALID_HANDLE_VALUE; return; } //向串口写入ABC三个字符 ULONG nBytesWritten; [...]

<b>Read more:</b><ul><li><a href='http://pkill.info/b/393/win32-%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c-%e7%a4%ba%e4%be%8b%e4%bb%a3%e7%a0%81/' rel='bookmark' title='Permanent Link: Win32 文件操作 示例代码'>Win32 文件操作 示例代码</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
<li><a href='http://pkill.info/b/386/setproxy-%e4%b8%80%e4%b8%aa%e8%ae%be%e7%bd%aeie%e4%bb%a3%e7%90%86%e7%9a%84%e5%b0%8f%e5%b7%a5%e5%85%b7/' rel='bookmark' title='Permanent Link: SetProxy 一个设置IE代理的小工具'>SetProxy 一个设置IE代理的小工具</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>这段时间做兼职帮做了一个COM口单片机监控控制程序, 学习了些Win32下COM口的控制.<br />
下面是与COM口控制有关的部分示例代码.</p>
<pre>//打开COM1
hCOM=CreateFile(
  "COM1",GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
if (hCOM==INVALID_HANDLE_VALUE) {
  MessageBox(
    GetForegroundWindow(),"无法打开串口！","操作失败",MB_ICONINFORMATION);
  return;
}

//设置DCB
DCB dcb;
if (!GetCommState(hCOM,&amp;dcb)) {
  MessageBox(
    GetForegroundWindow(),"无法获取串口状态！","操作失败",MB_ICONINFORMATION);
    hCOM=INVALID_HANDLE_VALUE;
    return;
}

dcb.BaudRate=9600;
dcb.ByteSize=8;
dcb.Parity=NOPARITY;
dcb.StopBits=ONESTOPBIT;
if (!SetCommState(hCOM,&amp;dcb)) {
  MessageBox(
    GetForegroundWindow(),"无法设置串口状态！","操作失败",MB_ICONINFORMATION);
  hCOM=INVALID_HANDLE_VALUE;
  return;
}

//设置COMMTIMEOUTS
COMMTIMEOUTS communication_timeout;
communication_timeout.ReadIntervalTimeout=MAXDWORD;
communication_timeout.ReadTotalTimeoutMultiplier=0;
communication_timeout.ReadTotalTimeoutConstant=0;
communication_timeout.WriteTotalTimeoutMultiplier=0;
communication_timeout.WriteTotalTimeoutConstant=0;
if (!SetCommTimeouts(hCOM,&amp;communication_timeout)) {
  MessageBox(
    GetForegroundWindow(),"无法设置串口超时！","操作失败",MB_ICONINFORMATION);
  hCOM=INVALID_HANDLE_VALUE;
  return;
}

//向串口写入ABC三个字符
ULONG nBytesWritten;
WriteFile(hCOM,"ABC",3,&amp;nBytesWritten,NULL);

//从串口读入三个字符至str
char str[3];
ULONG bytes_read_num;
ReadFile(hCOM,str,3,&amp;bytes_read_num,NULL);</pre>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/393/win32-%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c-%e7%a4%ba%e4%be%8b%e4%bb%a3%e7%a0%81/' rel='bookmark' title='Permanent Link: Win32 文件操作 示例代码'>Win32 文件操作 示例代码</a></li>
<li><a href='http://pkill.info/b/1352/the-c-programming-style-that-i-follow/' rel='bookmark' title='Permanent Link: The C Programming Style that I Follow'>The C Programming Style that I Follow</a></li>
<li><a href='http://pkill.info/b/386/setproxy-%e4%b8%80%e4%b8%aa%e8%ae%be%e7%bd%aeie%e4%bb%a3%e7%90%86%e7%9a%84%e5%b0%8f%e5%b7%a5%e5%85%b7/' rel='bookmark' title='Permanent Link: SetProxy 一个设置IE代理的小工具'>SetProxy 一个设置IE代理的小工具</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SetProxy 一个设置IE代理的小工具</title>
		<link>http://pkill.info/b/386/setproxy-%e4%b8%80%e4%b8%aa%e8%ae%be%e7%bd%aeie%e4%bb%a3%e7%90%86%e7%9a%84%e5%b0%8f%e5%b7%a5%e5%85%b7/</link>
		<comments>http://pkill.info/b/386/setproxy-%e4%b8%80%e4%b8%aa%e8%ae%be%e7%bd%aeie%e4%bb%a3%e7%90%86%e7%9a%84%e5%b0%8f%e5%b7%a5%e5%85%b7/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 19:46:27 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Project]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[win32]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/setproxy-%e4%b8%80%e4%b8%aa%e8%ae%be%e7%bd%aeie%e4%bb%a3%e7%90%86%e7%9a%84%e5%b0%8f%e5%b7%a5%e5%85%b7/</guid>
		<description><![CDATA[IE的代理设置用起来并不方便，我自己而言就要经常更改代理服务器，相信很多人有跟我相同的需要。 使用C调用Win32 API编写了一个小程序SetProxy用来设置代理服务器IP，用起来方便多了。 只有一个可运行console程序，将它放在windows\system32目录下，使用时只要运行 setproxy IP:port 就可以把IP设置好，如果要关闭代理，只须运行 setproxy &#8220;&#8221; 用起来方便多了。 现在是命令行运行，界面比较土，但用起来方便。 程序下载地址 现在将源代码放在这里，希望可以用得上 ;) 源代码下载地址 Read more:DebugTerm &#8211; telnet二进制显示与发送调试程序 Win32 文件操作 示例代码 Win32下COM口通信控制

<b>Read more:</b><ul><li><a href='http://pkill.info/b/383/debugterm-telnet%e4%ba%8c%e8%bf%9b%e5%88%b6%e6%98%be%e7%a4%ba%e4%b8%8e%e5%8f%91%e9%80%81%e8%b0%83%e8%af%95%e7%a8%8b%e5%ba%8f/' rel='bookmark' title='Permanent Link: DebugTerm &#8211; telnet二进制显示与发送调试程序'>DebugTerm &#8211; telnet二进制显示与发送调试程序</a></li>
<li><a href='http://pkill.info/b/393/win32-%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c-%e7%a4%ba%e4%be%8b%e4%bb%a3%e7%a0%81/' rel='bookmark' title='Permanent Link: Win32 文件操作 示例代码'>Win32 文件操作 示例代码</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>IE的代理设置用起来并不方便，我自己而言就要经常更改代理服务器，相信很多人有跟我相同的需要。<br />
使用C调用Win32 API编写了一个小程序SetProxy用来设置代理服务器IP，用起来方便多了。<br />
只有一个可运行console程序，将它放在windows\system32目录下，使用时只要运行<br />
setproxy IP:port<br />
就可以把IP设置好，如果要关闭代理，只须运行<br />
setproxy &#8220;&#8221;<br />
用起来方便多了。<br />
现在是命令行运行，界面比较土，但用起来方便。</p>
<p><a href="https://sites.google.com/site/ericzqma/downloads/SetProxy.rar">程序下载地址</a></p>
<p>现在将源代码放在这里，希望可以用得上 ;)</p>
<p><a href="https://sites.google.com/site/ericzqma/src_files/SetProxy.rar">源代码下载地址</a></p>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/383/debugterm-telnet%e4%ba%8c%e8%bf%9b%e5%88%b6%e6%98%be%e7%a4%ba%e4%b8%8e%e5%8f%91%e9%80%81%e8%b0%83%e8%af%95%e7%a8%8b%e5%ba%8f/' rel='bookmark' title='Permanent Link: DebugTerm &#8211; telnet二进制显示与发送调试程序'>DebugTerm &#8211; telnet二进制显示与发送调试程序</a></li>
<li><a href='http://pkill.info/b/393/win32-%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c-%e7%a4%ba%e4%be%8b%e4%bb%a3%e7%a0%81/' rel='bookmark' title='Permanent Link: Win32 文件操作 示例代码'>Win32 文件操作 示例代码</a></li>
<li><a href='http://pkill.info/b/391/win32%e4%b8%8bcom%e5%8f%a3%e9%80%9a%e4%bf%a1%e6%8e%a7%e5%88%b6/' rel='bookmark' title='Permanent Link: Win32下COM口通信控制'>Win32下COM口通信控制</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/386/setproxy-%e4%b8%80%e4%b8%aa%e8%ae%be%e7%bd%aeie%e4%bb%a3%e7%90%86%e7%9a%84%e5%b0%8f%e5%b7%a5%e5%85%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DebugTerm &#8211; telnet二进制显示与发送调试程序</title>
		<link>http://pkill.info/b/383/debugterm-telnet%e4%ba%8c%e8%bf%9b%e5%88%b6%e6%98%be%e7%a4%ba%e4%b8%8e%e5%8f%91%e9%80%81%e8%b0%83%e8%af%95%e7%a8%8b%e5%ba%8f/</link>
		<comments>http://pkill.info/b/383/debugterm-telnet%e4%ba%8c%e8%bf%9b%e5%88%b6%e6%98%be%e7%a4%ba%e4%b8%8e%e5%8f%91%e9%80%81%e8%b0%83%e8%af%95%e7%a8%8b%e5%ba%8f/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 19:42:10 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Project]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[vc]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/debugterm-telnet%e4%ba%8c%e8%bf%9b%e5%88%b6%e6%98%be%e7%a4%ba%e4%b8%8e%e5%8f%91%e9%80%81%e8%b0%83%e8%af%95%e7%a8%8b%e5%ba%8f/</guid>
		<description><![CDATA[由于做COM控制程序，调试程序时需要发送和接收二进制形式数据。 手动编制了一个可以发送和接收二进制数据的DebugTelnet程序。 显示为十六进制，显示和发送均以字节为单位。 例如： Connect to bbs.fudan.edu.cn : 23 &#8230; Connected. Received: 0AC4BFC7B0D5FDD3D030C8CBD5FDB3A2CAD4C1ACBDD3FFFB01FFFB03 Received: &#8230; 84 Received: 84 下载地址 此程序免费使用，下载使用的请发送一封邮件告诉我都是谁用到它:eric. zq. ma (a t] g mail. com Read more:SetProxy 一个设置IE代理的小工具 一个基于Java Applet的浏览器端远程系统资源监视器 MFC程序使用系统风格界面

<b>Read more:</b><ul><li><a href='http://pkill.info/b/386/setproxy-%e4%b8%80%e4%b8%aa%e8%ae%be%e7%bd%aeie%e4%bb%a3%e7%90%86%e7%9a%84%e5%b0%8f%e5%b7%a5%e5%85%b7/' rel='bookmark' title='Permanent Link: SetProxy 一个设置IE代理的小工具'>SetProxy 一个设置IE代理的小工具</a></li>
<li><a href='http://pkill.info/b/380/%e4%b8%80%e4%b8%aa%e5%9f%ba%e4%ba%8ejava-applet%e7%9a%84%e6%b5%8f%e8%a7%88%e5%99%a8%e7%ab%af%e8%bf%9c%e7%a8%8b%e7%b3%bb%e7%bb%9f%e8%b5%84%e6%ba%90%e7%9b%91%e8%a7%86%e5%99%a8-2/' rel='bookmark' title='Permanent Link: 一个基于Java Applet的浏览器端远程系统资源监视器'>一个基于Java Applet的浏览器端远程系统资源监视器</a></li>
<li><a href='http://pkill.info/b/132/mfc%e7%a8%8b%e5%ba%8f%e4%bd%bf%e7%94%a8%e7%b3%bb%e7%bb%9f%e9%a3%8e%e6%a0%bc%e7%95%8c%e9%9d%a2/' rel='bookmark' title='Permanent Link: MFC程序使用系统风格界面'>MFC程序使用系统风格界面</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>由于做COM控制程序，调试程序时需要发送和接收二进制形式数据。<br />
手动编制了一个可以发送和接收二进制数据的DebugTelnet程序。<br />
显示为十六进制，显示和发送均以字节为单位。<br />
例如：<br />
Connect to bbs.fudan.edu.cn : 23 &#8230;<br />
Connected.<br />
Received: 0AC4BFC7B0D5FDD3D030C8CBD5FDB3A2CAD4C1ACBDD3FFFB01FFFB03<br />
Received: &#8230;<br />
84<br />
Received: 84</p>
<p><a href="https://sites.google.com/site/ericzqma/downloads/debugterm.rar">下载地址</a></p>
<p>此程序免费使用，下载使用的请发送一封邮件告诉我都是谁用到它:eric. zq. ma (a t]  g mail. com</p>


<b>Read more:</b><ul><li><a href='http://pkill.info/b/386/setproxy-%e4%b8%80%e4%b8%aa%e8%ae%be%e7%bd%aeie%e4%bb%a3%e7%90%86%e7%9a%84%e5%b0%8f%e5%b7%a5%e5%85%b7/' rel='bookmark' title='Permanent Link: SetProxy 一个设置IE代理的小工具'>SetProxy 一个设置IE代理的小工具</a></li>
<li><a href='http://pkill.info/b/380/%e4%b8%80%e4%b8%aa%e5%9f%ba%e4%ba%8ejava-applet%e7%9a%84%e6%b5%8f%e8%a7%88%e5%99%a8%e7%ab%af%e8%bf%9c%e7%a8%8b%e7%b3%bb%e7%bb%9f%e8%b5%84%e6%ba%90%e7%9b%91%e8%a7%86%e5%99%a8-2/' rel='bookmark' title='Permanent Link: 一个基于Java Applet的浏览器端远程系统资源监视器'>一个基于Java Applet的浏览器端远程系统资源监视器</a></li>
<li><a href='http://pkill.info/b/132/mfc%e7%a8%8b%e5%ba%8f%e4%bd%bf%e7%94%a8%e7%b3%bb%e7%bb%9f%e9%a3%8e%e6%a0%bc%e7%95%8c%e9%9d%a2/' rel='bookmark' title='Permanent Link: MFC程序使用系统风格界面'>MFC程序使用系统风格界面</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://pkill.info/b/383/debugterm-telnet%e4%ba%8c%e8%bf%9b%e5%88%b6%e6%98%be%e7%a4%ba%e4%b8%8e%e5%8f%91%e9%80%81%e8%b0%83%e8%af%95%e7%a8%8b%e5%ba%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
