<?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>火星信息安全研究院程序设计『Programing』</title>
	<atom:link href="http://www.h4ck.org.cn/category/cxsj/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.h4ck.org.cn</link>
	<description>Hack-Crack  信息安全 【Institute Of Information Serurity From Mars】</description>
	<lastBuildDate>Sat, 04 Feb 2012 13:59:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>User Agent Simulator v2.0</title>
		<link>http://www.h4ck.org.cn/2012/02/user-agent-simulator-v2-0/</link>
		<comments>http://www.h4ck.org.cn/2012/02/user-agent-simulator-v2-0/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 06:36:21 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3698</guid>
		<description><![CDATA[User Agent Simulator v2.0]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2012/02/uags.png" rel="lightbox" title="uags"><img title="uags" src="http://www.h4ck.org.cn/wp-content/uploads//2012/02/uags.png" alt="" width="690" height="557" /></a></p>
<p>很久之前写过一个浏览器的User Agent模拟工具，但是比较粗糙。没有进度，也没有单独的线程处理下载。在下载大文件的时候就卡死了。今天重新修改了一下，至于模拟User Agent干嘛就不用明说了吧？嘻嘻 <img src='http://www.h4ck.org.cn/wp-content/plugins/smilies-themer/Julianus/20x20-look_down.png' alt=':D' class='wp-smiley' /> </p>
<p><span id="more-3698"></span></p>
<p>反正是想干点什么坏事还不想让人知道那么最简单的方法就是模拟User Agent了。这次也没有准备什么文本模式，感觉没有必要，下载的页面或者文件会保存在程序的当前目录下。至于叫什么名字一看就知道了。对于post数据测试的比较少，如果有什么问题在后面留言吧。<a href="http://dl.dbank.com/c0ssew3j7h" target="_blank">猛击此处下载程序！ </a><br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2011/04/dejavu-fonts-ttf-2-33/" title="dejavu-fonts-ttf-2.33" rel="bookmark inlinks">dejavu-fonts-ttf-2.33</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/10/glass-cmd-for-win-7/" title="Glass CMD For Win 7" rel="bookmark inlinks">Glass CMD For Win 7</a><span class="count">( 5 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/12/bbs-time-add/" title="火星黑客研究院-论坛挂机工具" rel="bookmark inlinks">火星黑客研究院-论坛挂机工具</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/delphi-time-delay/" title="Delphi中实现程序的延时的方法" rel="bookmark inlinks">Delphi中实现程序的延时的方法</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/07/kill-360-cloud/" title="蛋疼的挂掉360云查杀的小玩意儿" rel="bookmark inlinks">蛋疼的挂掉360云查杀的小玩意儿</a><span class="count">( 3 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/08/delphi-program-webbook/" title="Delphi编程手册 网络版" rel="bookmark inlinks">Delphi编程手册 网络版</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/03/dynamicskinform-vcl-skins/" title="DynamicSkinForm VCL  SKINS" rel="bookmark inlinks">DynamicSkinForm VCL  SKINS</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/09/crack-editor/" title="破解专用记事本 修正版" rel="bookmark inlinks">破解专用记事本 修正版</a><span class="count">( 2 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2012/02/user-agent-simulator-v2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VS2010 + IDASDK6.2搭建IDA Plugin开发环境</title>
		<link>http://www.h4ck.org.cn/2011/11/vs2010-idasdk6-2-ida-plugin-development/</link>
		<comments>http://www.h4ck.org.cn/2011/11/vs2010-idasdk6-2-ida-plugin-development/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 08:50:14 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[插件『IDA/OD Plugin』]]></category>
		<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[IDA]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3438</guid>
		<description><![CDATA[VS2010 + IDASDK6.2搭建IDA Plugin开发环境]]></description>
			<content:encoded><![CDATA[<p>这里使用的开发环境是vs2010，不过几乎所有的设置在早期版本的vs中基本是一致的。启动vs之后关闭其他的项目和解决方案，然后按照下面的流程创作工程即可。</p>
<ol>
<li>执行菜单的File-&gt;New-&gt;Project… (Ctrl-Shift-N)打开新建工程窗口。</li>
<li>展开左侧的Visual C++项目模板分支，然后选择右侧的Win32 Project条目，输入工程名称，然后点击确定。</li>
</ol>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/1.png" rel="lightbox" title="1"><img title="1" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/1.png" alt="" width="669" height="462" /></a><br />
<span id="more-3438"></span></p>
<ol>
<li>在Win32Application Wizard先到出现之后，点击左侧的Application Settings连接，在设置界面勾选Windows Application选项，然后选择Empty Project，点击完成按钮退出向导。</li>
</ol>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/2.png" rel="lightbox" title="2"><img title="2" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/2.png" alt="" width="615" height="524" /></a></p>
<ol>
<li>在左侧的解决方案浏览器中，点击源文件，执行添加，新建项添加新的源文件。</li>
</ol>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/3.png" rel="lightbox" title="3"><img title="3" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/3.png" alt="" width="582" height="333" /></a></p>
<ol>
<li>选择C++文件模板，输入文件名称然后点击添加按钮添加此文件，重复此操作知道添加完所有文件。</li>
</ol>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/4.png" rel="lightbox" title="4"><img title="4" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/4.png" alt="" width="669" height="462" /></a></p>
<ol>
<li>按照下面的格式修改项目属性。</li>
</ol>
<p>在左上方的配置下拉框中选择<strong>Release</strong>；</p>
<p>修改属性-&gt;常规，将配置类型修改为<strong>动态库</strong><strong>DLL</strong><strong>，目标文件扩展名修改为.plw</strong></p>
<p>C/C++-&gt;常规，附加包含目录添加ida sdk include目录，例如C:\IDA\SDK\Include</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/51.png" rel="lightbox" title="5"><img title="5" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/51.png" alt="" width="487" height="315" /></a></p>
<p>C/C++-&gt;预处理器，添加__NT__;__IDP__字段到预处理器定义中。</p>
<p>C/C++-&gt;代码生成，关闭缓冲区安全检查，将基本运行时检查设为默认，将运行库设置为多线程（MT）</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/6.png" rel="lightbox" title="6"><img title="6" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/6.png" alt="" width="752" height="495" /></a></p>
<p>C/C++-&gt;高级，将调用约定修改为__stdcall (/Gz)</p>
<p>连接器-&gt;常规，将输出文件修改为你的ida插件目录，例如E:\IDA 6.2\plugins</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/7.png" rel="lightbox" title="7"><img title="7" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/7.png" alt="" width="752" height="495" /></a></p>
<p>连接器-&gt;输入，将ida.lib添加到附加依赖项中。</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/8.png" rel="lightbox" title="8"><img title="8" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/8.png" alt="" width="752" height="495" /></a></p>
<p>连接器-&gt;调试，生成调试信息设置为否</p>
<p>连接器-&gt;命令行添加/EXPORT:PLUGIN</p>
<p>生成事件-&gt;后期生成事件，将ida添加到命令行中一边每次生成之后启动加载插件运行（可以不设置）</p>
<p>所有配置完成时候点击保存然后关闭设置窗口，在顶部的配置栏中选择release，即可。</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/9.png" rel="lightbox" title="9"><img title="9" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/9.png" alt="" width="752" height="495" /></a></p>
<p>下面就可以开始写代码和进行测试了，这里有一个简单的插件模板，再次基础上完善即可创建一个新的插件：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &lt;ida .hpp&gt;</span>
<span style="color: #339933;">#include &lt;idp .hpp&gt;</span>
<span style="color: #339933;">#include &lt;loader .hpp&gt;</span>
&nbsp;
<span style="color: #993333;">int</span> IDAP_init<span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// Do checks here to ensure your plug-in is being used within</span>
	<span style="color: #666666; font-style: italic;">// an environment it was written for. Return PLUGIN_SKIP if the 	</span>
	<span style="color: #666666; font-style: italic;">// checks fail, otherwise return PLUGIN_KEEP.</span>
&nbsp;
	<span style="color: #b1b100;">return</span> PLUGIN_KEEP<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #993333;">void</span> IDAP_term<span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// Stuff to do when exiting, generally you'd put any sort</span>
	<span style="color: #666666; font-style: italic;">// of clean-up jobs here.</span>
	<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// The plugin can be passed an integer argument from the plugins.cfg</span>
<span style="color: #666666; font-style: italic;">// file. This can be useful when you want the one plug-in to do</span>
<span style="color: #666666; font-style: italic;">// something different depending on the hot-key pressed or menu</span>
<span style="color: #666666; font-style: italic;">// item selected.</span>
<span style="color: #993333;">void</span> IDAP_run<span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> arg<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// The &quot;meat&quot; of your plug-in</span>
	msg<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Hello world By obaby!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	msg<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;This is My first IDA Plugin!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	msg<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Plugin templete Created by Steve Micallef!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	msg<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Thx for his Great Works!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// There isn't much use for these yet, but I set them anyway.</span>
<span style="color: #993333;">char</span> IDAP_comment<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> 	<span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;This is my test plug-in&quot;</span><span style="color: #339933;">;</span>
<span style="color: #993333;">char</span> IDAP_help<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> 		<span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;My plugin&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// The name of the plug-in displayed in the Edit-&gt;Plugins menu. It can </span>
<span style="color: #666666; font-style: italic;">// be overridden in the user's plugins.cfg file.</span>
<span style="color: #993333;">char</span> IDAP_name<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> 		<span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;My plugin&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// The hot-key the user can use to run your plug-in.</span>
<span style="color: #993333;">char</span> IDAP_hotkey<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> 	<span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Alt-X&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// The all-important exported PLUGIN object</span>
plugin_t PLUGIN <span style="color: #339933;">=</span>
<span style="color: #009900;">&#123;</span>
	IDP_INTERFACE_VERSION<span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">// IDA version plug-in is written for</span>
	<span style="color: #0000dd;">0</span><span style="color: #339933;">,</span>					<span style="color: #666666; font-style: italic;">// Flags (see below)</span>
	IDAP_init<span style="color: #339933;">,</span>			<span style="color: #666666; font-style: italic;">// Initialisation function</span>
	IDAP_term<span style="color: #339933;">,</span>			<span style="color: #666666; font-style: italic;">// Clean-up function</span>
	IDAP_run<span style="color: #339933;">,</span>				<span style="color: #666666; font-style: italic;">// Main plug-in body</span>
	IDAP_comment<span style="color: #339933;">,</span>			<span style="color: #666666; font-style: italic;">// Comment �unused</span>
	IDAP_help<span style="color: #339933;">,</span>			<span style="color: #666666; font-style: italic;">// As above �unused</span>
	IDAP_name<span style="color: #339933;">,</span>			<span style="color: #666666; font-style: italic;">// Plug-in name shown in </span>
	<span style="color: #666666; font-style: italic;">// Edit-&gt;Plugins menu</span>
	IDAP_hotkey			<span style="color: #666666; font-style: italic;">// Hot key to run the plug-in</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>loader<span style="color: #339933;">&gt;&lt;/</span>idp<span style="color: #339933;">&gt;&lt;/</span>ida<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>最后是一张效果图，至于其他的东西，以后可以继续写点东西。</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/10.png" rel="lightbox" title="10"><img title="10" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/10.png" alt="" width="638" height="367" /></a></p>
<p><a href="http://dl.dbank.com/c0tdka4qpf" target="_blank">猛击此处下载pdf版本</a>！<br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2011/12/moving-to-windows-x64-translate-to-ch/" title="Moving to Windows x64【翻译】" rel="bookmark inlinks">Moving to Windows x64【翻译】</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/01/drivers/" title="键盘过滤驱动勘误《寒江独钓》" rel="bookmark inlinks">键盘过滤驱动勘误《寒江独钓》</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/07/windows-hotfix-check-via-cc/" title="Windows HotFix Check Via C/C++" rel="bookmark inlinks">Windows HotFix Check Via C/C++</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/09/comment-viewer-v-0-2/" title="Comment Viewer v.0.2" rel="bookmark inlinks">Comment Viewer v.0.2</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/11/vs-compile-options/" title="微软C-C++ 编译器选项" rel="bookmark inlinks">微软C-C++ 编译器选项</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/05/windows-driver-debug-via-ida-pro/" title="IDA 6.1调试驱动" rel="bookmark inlinks">IDA 6.1调试驱动</a><span class="count">( 4 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/05/ida-pro-5-2-for-linux/" title="IDA Pro 5.2 For Linux（ubuntu 10.04）" rel="bookmark inlinks">IDA Pro 5.2 For Linux（ubuntu 10.04）</a><span class="count">( 7 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/11/import-repeatable-comments-to-ida-via-script/" title="Import Repeatable Comments to IDA Via Script" rel="bookmark inlinks">Import Repeatable Comments to IDA Via Script</a><span class="count">( 1 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/11/vs2010-idasdk6-2-ida-plugin-development/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C/C++/Delphi 调用命令并且显示执行结果</title>
		<link>http://www.h4ck.org.cn/2011/11/cdelphi-execute-cmd-commands-and-get-result/</link>
		<comments>http://www.h4ck.org.cn/2011/11/cdelphi-execute-cmd-commands-and-get-result/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 06:38:57 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3432</guid>
		<description><![CDATA[C/C++/Delphi 调用命令并且显示执行结果]]></description>
			<content:encoded><![CDATA[<p>C/C++ 代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">void</span> ExecutCmd<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	SECURITY_ATTRIBUTES sa<span style="color: #339933;">;</span>
	HANDLE hRead<span style="color: #339933;">,</span>hWrite<span style="color: #339933;">;</span>
	<span style="color: #993333;">wchar_t</span> <span style="color: #339933;">*</span> lpCommandLine <span style="color: #339933;">=</span>_T<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;ping.exe www.h4ck.org.cn &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	sa.<span style="color: #202020;">nLength</span> <span style="color: #339933;">=</span> <span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>SECURITY_ATTRIBUTES<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	sa.<span style="color: #202020;">lpSecurityDescriptor</span> <span style="color: #339933;">=</span> NULL<span style="color: #339933;">;</span>
	sa.<span style="color: #202020;">bInheritHandle</span> <span style="color: #339933;">=</span> TRUE<span style="color: #339933;">;</span>
&nbsp;
	TCHAR temp<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">255</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
	_tcscpy<span style="color: #009900;">&#40;</span>temp<span style="color: #339933;">,</span>lpCommandLine<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>CreatePipe<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>hRead<span style="color: #339933;">,&amp;</span>hWrite<span style="color: #339933;">,&amp;</span>sa<span style="color: #339933;">,</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		MessageBox<span style="color: #009900;">&#40;</span>_T<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Error On CreatePipe()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	STARTUPINFO si<span style="color: #339933;">;</span>
	PROCESS_INFORMATION pi<span style="color: #339933;">;</span>
	si.<span style="color: #202020;">cb</span> <span style="color: #339933;">=</span> <span style="color: #993333;">sizeof</span><span style="color: #009900;">&#40;</span>STARTUPINFO<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	GetStartupInfo<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>si<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	si.<span style="color: #202020;">hStdError</span> <span style="color: #339933;">=</span> hWrite<span style="color: #339933;">;</span>
	si.<span style="color: #202020;">hStdOutput</span> <span style="color: #339933;">=</span> hWrite<span style="color: #339933;">;</span>
	si.<span style="color: #202020;">wShowWindow</span> <span style="color: #339933;">=</span> SW_HIDE<span style="color: #339933;">;</span>
	si.<span style="color: #202020;">dwFlags</span> <span style="color: #339933;">=</span> STARTF_USESHOWWINDOW <span style="color: #339933;">|</span> STARTF_USESTDHANDLES<span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>CreateProcess<span style="color: #009900;">&#40;</span>NULL<span style="color: #339933;">,</span>temp
		<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>TRUE<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,</span>NULL<span style="color: #339933;">,&amp;</span>si<span style="color: #339933;">,&amp;</span>pi<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			MessageBox<span style="color: #009900;">&#40;</span>_T<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Error on CreateProcess()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	CloseHandle<span style="color: #009900;">&#40;</span>hWrite<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #993333;">char</span> buffer<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">4096</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #0000dd;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
	DWORD bytesRead<span style="color: #339933;">;</span>
	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>ReadFile<span style="color: #009900;">&#40;</span>hRead<span style="color: #339933;">,</span>buffer<span style="color: #339933;">,</span>0x3FFu<span style="color: #339933;">,&amp;</span>bytesRead<span style="color: #339933;">,</span>NULL<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> NULL<span style="color: #009900;">&#41;</span>
			<span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		outputstr <span style="color: #339933;">+=</span> buffer<span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//m_outputstr is CString</span>
		OutputDebugString<span style="color: #009900;">&#40;</span>outputstr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		UpdateData<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		Sleep<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><span id="more-3432"></span><br />
Delphi 代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">procedure</span> CheckResult<span style="color: #000066;">&#40;</span>b<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Boolean</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">begin</span> 
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #000000; font-weight: bold;">not</span> b <span style="color: #000000; font-weight: bold;">then</span> 
<span style="color: #000000; font-weight: bold;">raise</span> Exception<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">&#40;</span><span style="color: #000066;">SysErrorMessage</span><span style="color: #000066;">&#40;</span><span style="color: #000066;">GetLastError</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span> 
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> RunDOS<span style="color: #000066;">&#40;</span><span style="color: #000000; font-weight: bold;">const</span> CommandLine<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">string</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">string</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">var</span> 
HRead<span style="color: #000066;">,</span> HWrite<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">THandle</span><span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">:</span> TStartupInfo<span style="color: #000066;">;</span> 
ProceInfo<span style="color: #000066;">:</span> TProcessInformation<span style="color: #000066;">;</span> 
b<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Boolean</span><span style="color: #000066;">;</span> 
sa<span style="color: #000066;">:</span> TSecurityAttributes<span style="color: #000066;">;</span> 
inS<span style="color: #000066;">:</span> THandleStream<span style="color: #000066;">;</span> 
sRet<span style="color: #000066;">:</span> TStrings<span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">begin</span> 
Result <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">''</span><span style="color: #000066;">;</span> 
<span style="color: #000066;">FillChar</span><span style="color: #000066;">&#40;</span>sa<span style="color: #000066;">,</span> <span style="color: #000066;">sizeof</span><span style="color: #000066;">&#40;</span>sa<span style="color: #000066;">&#41;</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">0</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #808080; font-style: italic;">//设置允许继承，否则在NT和2000下无法取得输出结果 </span>
sa<span style="color: #000066;">.</span><span style="color: #006600;">nLength</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000066;">sizeof</span><span style="color: #000066;">&#40;</span>sa<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
sa<span style="color: #000066;">.</span><span style="color: #006600;">bInheritHandle</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">True</span><span style="color: #000066;">;</span> 
sa<span style="color: #000066;">.</span><span style="color: #006600;">lpSecurityDescriptor</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">;</span> 
b <span style="color: #000066;">:</span><span style="color: #000066;">=</span> CreatePipe<span style="color: #000066;">&#40;</span>HRead<span style="color: #000066;">,</span> HWrite<span style="color: #000066;">,</span> <span style="color: #000066;">@</span>sa<span style="color: #000066;">,</span> <span style="color: #0000ff;">0</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
CheckResult<span style="color: #000066;">&#40;</span>b<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
&nbsp;
<span style="color: #000066;">FillChar</span><span style="color: #000066;">&#40;</span>StartInfo<span style="color: #000066;">,</span> <span style="color: #000066;">SizeOf</span><span style="color: #000066;">&#40;</span>StartInfo<span style="color: #000066;">&#41;</span><span style="color: #000066;">,</span> <span style="color: #0000ff;">0</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">cb</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000066;">SizeOf</span><span style="color: #000066;">&#40;</span>StartInfo<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">wShowWindow</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> SW_HIDE<span style="color: #000066;">;</span> 
<span style="color: #808080; font-style: italic;">//使用指定的句柄作为标准输入输出的文件句柄,使用指定的显示方式 </span>
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">dwFlags</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> STARTF_USESTDHANDLES <span style="color: #000000; font-weight: bold;">or</span> STARTF_USESHOWWINDOW<span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">hStdError</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> HWrite<span style="color: #000066;">;</span> 
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">hStdInput</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> GetStdHandle<span style="color: #000066;">&#40;</span>STD_INPUT_HANDLE<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> <span style="color: #808080; font-style: italic;">//HRead; </span>
StartInfo<span style="color: #000066;">.</span><span style="color: #006600;">hStdOutput</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> HWrite<span style="color: #000066;">;</span> 
&nbsp;
b <span style="color: #000066;">:</span><span style="color: #000066;">=</span> CreateProcess<span style="color: #000066;">&#40;</span><span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//lpApplicationName: PChar </span>
<span style="color: #000066; font-weight: bold;">PChar</span><span style="color: #000066;">&#40;</span>CommandLine<span style="color: #000066;">&#41;</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//lpCommandLine: PChar </span>
<span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//lpProcessAttributes: PSecurityAttributes </span>
<span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//lpThreadAttributes: PSecurityAttributes </span>
<span style="color: #000000; font-weight: bold;">True</span><span style="color: #000066;">,</span> <span style="color: #808080; font-style: italic;">//bInheritHandles: BOOL </span>
CREATE_NEW_CONSOLE<span style="color: #000066;">,</span> 
<span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> 
<span style="color: #000000; font-weight: bold;">nil</span><span style="color: #000066;">,</span> 
StartInfo<span style="color: #000066;">,</span> 
ProceInfo<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
&nbsp;
CheckResult<span style="color: #000066;">&#40;</span>b<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
WaitForSingleObject<span style="color: #000066;">&#40;</span>ProceInfo<span style="color: #000066;">.</span><span style="color: #006600;">hProcess</span><span style="color: #000066;">,</span> INFINITE<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
&nbsp;
inS <span style="color: #000066;">:</span><span style="color: #000066;">=</span> THandleStream<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">&#40;</span>HRead<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">if</span> inS<span style="color: #000066;">.</span><span style="color: #006600;">Size</span> &gt; <span style="color: #0000ff;">0</span> <span style="color: #000000; font-weight: bold;">then</span> 
<span style="color: #000000; font-weight: bold;">begin</span> 
sRet <span style="color: #000066;">:</span><span style="color: #000066;">=</span> TStringList<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span> 
sRet<span style="color: #000066;">.</span><span style="color: #006600;">LoadFromStream</span><span style="color: #000066;">&#40;</span>inS<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
Result <span style="color: #000066;">:</span><span style="color: #000066;">=</span> sRet<span style="color: #000066;">.</span><span style="color: #006600;">Text</span><span style="color: #000066;">;</span> 
sRet<span style="color: #000066;">.</span><span style="color: #006600;">Free</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span> 
inS<span style="color: #000066;">.</span><span style="color: #006600;">Free</span><span style="color: #000066;">;</span> 
&nbsp;
CloseHandle<span style="color: #000066;">&#40;</span>HRead<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
CloseHandle<span style="color: #000066;">&#40;</span>HWrite<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span> 
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span></pre></td></tr></table></div>

<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2010/01/drivers/" title="键盘过滤驱动勘误《寒江独钓》" rel="bookmark inlinks">键盘过滤驱动勘误《寒江独钓》</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/rtx-2010-tittle-editor/" title="RTX 2010 标题修改器" rel="bookmark inlinks">RTX 2010 标题修改器</a><span class="count">( 21 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/06/crack-edit-alpha/" title="破解专用多功能记事本 Alpha 版" rel="bookmark inlinks">破解专用多功能记事本 Alpha 版</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/04/reflector-1-0-2011-0408/" title="Reflector 1.0.2011.0408" rel="bookmark inlinks">Reflector 1.0.2011.0408</a><span class="count">( 3 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/dxskin-for-delphi-7-cracked-%e4%b8%80%e4%b8%aa%e7%b1%bb%e4%bc%bc%e4%ba%8eqq%e7%9a%ae%e8%82%a4%e7%9a%84%e6%8e%a7%e4%bb%b6/" title="DxSkin For Delphi 7 Cracked {一个类似于QQ皮肤的控件}" rel="bookmark inlinks">DxSkin For Delphi 7 Cracked {一个类似于QQ皮肤的控件}</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/04/get-device-type/" title="获取指定类型的设备，符号链接" rel="bookmark inlinks">获取指定类型的设备，符号链接</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/unicode-base64/" title="字符转转换（汉字 Unicode Base64加密解密）" rel="bookmark inlinks">字符转转换（汉字 Unicode Base64加密解密）</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/07/windows-hotfix-check-via-cc/" title="Windows HotFix Check Via C/C++" rel="bookmark inlinks">Windows HotFix Check Via C/C++</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/11/cdelphi-execute-cmd-commands-and-get-result/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>微软C-C++ 编译器选项</title>
		<link>http://www.h4ck.org.cn/2011/11/vs-compile-options/</link>
		<comments>http://www.h4ck.org.cn/2011/11/vs-compile-options/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 03:58:26 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3385</guid>
		<description><![CDATA[微软C-C++ 编译器选项]]></description>
			<content:encoded><![CDATA[<table id="AutoNumber1" style="width: 85%;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="3" align="center" width="100%"><strong>微软C/C++ 编译器选项</strong></td>
</tr>
<tr>
<td colspan="3" align="center" width="100%"><span style="color: #008000;"><strong>-优化- </strong></span></td>
</tr>
<tr>
<td width="22%">/O1</td>
<td width="32%">最小化空间</td>
<td width="46%">minimize space</td>
</tr>
<tr>
<td width="22%">/Op[-]</td>
<td width="32%">改善浮点数一致性</td>
<td width="46%">improve floating-pt consistency</td>
</tr>
<tr>
<td width="22%">/O2</td>
<td width="32%">最大化速度</td>
<td width="46%">maximize speed</td>
</tr>
<tr>
<td width="22%">/Os</td>
<td width="32%">优选代码空间</td>
<td width="46%">favor code space</td>
</tr>
<tr>
<td width="22%">/Oa</td>
<td width="32%">假设没有别名</td>
<td width="46%">assume no aliasing</td>
</tr>
<tr>
<td width="22%">/Ot</td>
<td width="32%">优选代码速度</td>
<td width="46%">favor code speed</td>
</tr>
<tr>
<td width="22%">/Ob</td>
<td width="32%">内联展开（默认 n=0）</td>
<td width="46%">inline expansion (default n=0)</td>
</tr>
<tr>
<td width="22%">/Ow</td>
<td width="32%">假设交叉函数别名</td>
<td width="46%">assume cross-function aliasing</td>
</tr>
<tr>
<td width="22%">/Od</td>
<td width="32%">禁用优化（默认值）</td>
<td width="46%">disable optimizations (default)</td>
</tr>
<tr>
<td width="22%">/Ox</td>
<td width="32%">最大化选项。(/Ogityb2 /Gs)</td>
<td width="46%">maximum opts. (/Ogityb1 /Gs)</td>
</tr>
<tr>
<td width="22%">/Og</td>
<td width="32%">启用全局优化</td>
<td width="46%">enable global optimization</td>
</tr>
<tr>
<td width="22%">/Oy[-]</td>
<td width="32%">启用框架指针省略</td>
<td width="46%">enable frame pointer omission</td>
</tr>
<tr>
<td width="22%">/Oi</td>
<td width="32%">启用内建函数</td>
<td width="46%">enable intrinsic functions</td>
</tr>
<tr>
<td colspan="3" align="center" width="100%"><strong>-代码生成- </strong></td>
</tr>
<tr>
<td width="22%">/G3</td>
<td width="32%">为 80386 进行优化</td>
<td width="46%">optimize for 80386</td>
</tr>
<tr>
<td width="22%">/G4</td>
<td width="32%">为 80486 进行优化</td>
<td width="46%">optimize for 80486</td>
</tr>
<tr>
<td width="22%">/GR[-]</td>
<td width="32%">启用 C++ RTTI</td>
<td width="46%">enable C++ RTTI</td>
</tr>
<tr>
<td width="22%">/G5</td>
<td width="32%">为 Pentium 进行优化</td>
<td width="46%">optimize for Pentium</td>
</tr>
<tr>
<td width="22%">/G6</td>
<td width="32%">为 Pentium Pro 进行优化</td>
<td width="46%">optimize for Pentium Pro</td>
</tr>
<tr>
<td width="22%">/GX[-]</td>
<td width="32%">启用 C++ 异常处理（与 /EHsc 相同）</td>
<td width="46%">enable C++ EH (same as /EHsc)</td>
</tr>
<tr>
<td width="22%">/EHs</td>
<td width="32%">启用同步 C++ 异常处理</td>
<td width="46%">enable synchronous C++ EH</td>
</tr>
<tr>
<td width="22%">/GD</td>
<td width="32%">为 Windows DLL 进行优化</td>
<td width="46%">optimize for Windows DLL</td>
</tr>
<tr>
<td width="22%">/GB</td>
<td width="32%">为混合模型进行优化（默认）</td>
<td width="46%">optimize for blended model (default)</td>
</tr>
<tr>
<td width="22%">/EHa</td>
<td width="32%">启用异步 C++ 异常处理</td>
<td width="46%">enable asynchronous C++ EH</td>
</tr>
<tr>
<td width="22%">/Gd</td>
<td width="32%">__cdecl 调用约定</td>
<td width="46%">__cdecl calling convention</td>
</tr>
<tr>
<td width="22%">/EHc</td>
<td width="32%">extern“C”默认为 nothrow</td>
<td width="46%">extern “C” defaults to nothrow</td>
</tr>
<tr>
<td width="22%">/Gr</td>
<td width="32%">__fastcall 调用约定</td>
<td width="46%">__fastcall calling convention</td>
</tr>
<tr>
<td width="22%">/Gi[-]</td>
<td width="32%">启用增量编译</td>
<td width="46%">enable incremental compilation</td>
</tr>
<tr>
<td width="22%">/Gz</td>
<td width="32%">__stdcall 调用约定</td>
<td width="46%">__stdcall calling convention</td>
</tr>
<tr>
<td width="22%">/Gm[-]</td>
<td width="32%">启用最小重新生成</td>
<td width="46%">enable minimal rebuild</td>
</tr>
<tr>
<td width="22%">/GA</td>
<td width="32%">为 Windows 应用程序进行优化</td>
<td width="46%">optimize for Windows Application</td>
</tr>
<tr>
<td width="22%">/Gf</td>
<td width="32%">启用字符串池</td>
<td width="46%">enable string pooling</td>
</tr>
<tr>
<td width="22%">/QIfdiv[-]</td>
<td width="32%">启用 Pentium FDIV 修复</td>
<td width="46%">enable Pentium FDIV fix</td>
</tr>
<tr>
<td width="22%">/GF</td>
<td width="32%">启用只读字符串池</td>
<td width="46%">enable read-only string pooling</td>
</tr>
<tr>
<td width="22%">/QI0f[-]</td>
<td width="32%">启用 Pentium 0x0f 修复</td>
<td width="46%">enable Pentium 0x0f fix</td>
</tr>
<tr>
<td width="22%">/Gy</td>
<td width="32%">分隔链接器函数</td>
<td width="46%">separate functions for linker</td>
</tr>
<tr>
<td width="22%">/GZ</td>
<td width="32%">启用运行时调试检查</td>
<td width="46%">enable runtime debug checks</td>
</tr>
<tr>
<td width="22%">/Gh</td>
<td width="32%">启用钩子函数调用</td>
<td width="46%">enable hook function call</td>
</tr>
<tr>
<td width="22%">/Ge</td>
<td width="32%">对所有函数强制堆栈检查</td>
<td width="46%">force stack checking for all funcs</td>
</tr>
<tr>
<td width="22%">/Gs[num]</td>
<td width="32%">禁用堆栈检查调用</td>
<td width="46%">disable stack checking calls</td>
</tr>
</tbody>
</table>
<p><span id="more-3385"></span></p>
<table id="AutoNumber1" style="width: 85%;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="3" align="center" width="100%"><strong>-输出文件- </strong></td>
</tr>
<tr>
<td width="22%">/Fa[file]</td>
<td width="32%">命名程序集列表文件</td>
<td width="46%">name assembly listing file</td>
</tr>
<tr>
<td width="22%">/Fo</td>
<td width="32%">命名对象文件</td>
<td width="46%">name object file</td>
</tr>
<tr>
<td width="22%">/FA[sc]</td>
<td width="32%">配置程序集列表</td>
<td width="46%">configure assembly listing</td>
</tr>
<tr>
<td width="22%">/Fp</td>
<td width="32%">命名预编译头文件</td>
<td width="46%">name precompiled header file</td>
</tr>
<tr>
<td width="22%">/Fd[file]</td>
<td width="32%">命名 .PDB 文件</td>
<td width="46%">name .PDB file</td>
</tr>
<tr>
<td width="22%">/Fr[file]</td>
<td width="32%">命名源浏览器文件</td>
<td width="46%">name source browser file</td>
</tr>
<tr>
<td width="22%">/Fe</td>
<td width="32%">命名可执行文件</td>
<td width="46%">name executable file</td>
</tr>
<tr>
<td width="22%">/FR[file]</td>
<td width="32%">命名扩展 .SBR 文件</td>
<td width="46%">name extended .SBR file</td>
</tr>
<tr>
<td width="22%">/Fm[file]</td>
<td width="32%">命名映射文件</td>
<td width="46%">name map file</td>
</tr>
<tr>
<td colspan="3" align="center" width="100%"><strong>-预处理器- </strong></td>
</tr>
<tr>
<td width="22%">/FI</td>
<td width="32%">命名强制包含文件</td>
<td width="46%">name forced include file</td>
</tr>
<tr>
<td width="22%">/C</td>
<td width="32%">不吸取注释</td>
<td width="46%">don&#8217;t strip comments</td>
</tr>
<tr>
<td width="22%">/U</td>
<td width="32%">移除预定义宏</td>
<td width="46%">remove predefined macro</td>
</tr>
<tr>
<td width="22%">/D{=|#}</td>
<td width="32%">定义宏</td>
<td width="46%">define macro</td>
</tr>
<tr>
<td width="22%">/u</td>
<td width="32%">移除所有预定义宏</td>
<td width="46%">remove all predefined macros</td>
</tr>
<tr>
<td width="22%">/E</td>
<td width="32%">将预处理定向到标准输出</td>
<td width="46%">preprocess to stdout</td>
</tr>
<tr>
<td width="22%">/I<dir></dir></td>
<td width="32%">添加到包含文件的搜索路径</td>
<td width="46%">add to include search path</td>
</tr>
<tr>
<td width="22%">/EP</td>
<td width="32%">将预处理定向到标准输出，不要带行号</td>
<td width="46%">preprocess to stdout, no #line</td>
</tr>
<tr>
<td width="22%">/X</td>
<td width="32%">忽略“标准位置”</td>
<td width="46%">ignore “standard places”</td>
</tr>
<tr>
<td width="22%">/P</td>
<td width="32%">预处理到文件</td>
<td width="46%">preprocess to file</td>
</tr>
<tr>
<td colspan="3" align="center" width="100%"><strong>-语言- </strong></td>
</tr>
<tr>
<td width="22%">/Zi</td>
<td width="32%">启用调试信息</td>
<td width="46%">enable debugging information</td>
</tr>
<tr>
<td width="22%">/Zl</td>
<td width="32%">忽略 .OBJ 中的默认库名</td>
<td width="46%">omit default library name in .OBJ</td>
</tr>
<tr>
<td width="22%">/ZI</td>
<td width="32%">启用调试信息的“编辑并继续”功能</td>
<td width="46%">enable Edit and Continue debug info</td>
</tr>
<tr>
<td width="22%">/Zg</td>
<td width="32%">生成函数原型</td>
<td width="46%">generate function prototypes</td>
</tr>
<tr>
<td width="22%">/Z7</td>
<td width="32%">启用旧式调试信息</td>
<td width="46%">enable old-style debug info</td>
</tr>
<tr>
<td width="22%">/Zs</td>
<td width="32%">只进行语法检查</td>
<td width="46%">syntax check only</td>
</tr>
<tr>
<td width="22%">/Zd</td>
<td width="32%">仅要行号调试信息</td>
<td width="46%">line number debugging info only</td>
</tr>
<tr>
<td width="22%">/vd{0|1}</td>
<td width="32%">禁用/启用 vtordisp</td>
<td width="46%">disable/enable vtordisp</td>
</tr>
<tr>
<td width="22%">/Zp[n]</td>
<td width="32%">在 n 字节边界上包装结构</td>
<td width="46%">pack structs on n-byte boundary</td>
</tr>
<tr>
<td width="22%">/vm</td>
<td width="32%">指向成员的指针类型</td>
<td width="46%">type of pointers to members</td>
</tr>
<tr>
<td width="22%">/Za</td>
<td width="32%">禁用扩展（暗指 /Op）</td>
<td width="46%">disable extensions (implies /Op)</td>
</tr>
<tr>
<td width="22%">/noBool</td>
<td width="32%">禁用“bool”关键字</td>
<td width="46%">disable “bool” keyword</td>
</tr>
<tr>
<td width="22%">/Ze</td>
<td width="32%">启用扩展（默认）</td>
<td width="46%">enable extensions (default)</td>
</tr>
<tr>
<td colspan="3" align="center" width="100%"><strong>- 杂项 &#8211; </strong></td>
</tr>
<tr>
<td width="22%">/?, /help</td>
<td width="32%">打印此帮助消息</td>
<td width="46%">print this help message</td>
</tr>
<tr>
<td width="22%">/c</td>
<td width="32%">只编译，不链接</td>
<td width="46%">compile only, no link</td>
</tr>
<tr>
<td width="22%">/W</td>
<td width="32%">设置警告等级（默认 n=1）</td>
<td width="46%">set warning level (default n=1)</td>
</tr>
<tr>
<td width="22%">/H</td>
<td width="32%">最大化外部名称长度</td>
<td width="46%">max external name length</td>
</tr>
<tr>
<td width="22%">/J</td>
<td width="32%">默认 char 类型是 unsigned</td>
<td width="46%">default char type is unsigned</td>
</tr>
<tr>
<td width="22%">/nologo</td>
<td width="32%">取消显示版权消息</td>
<td width="46%">suppress copyright message</td>
</tr>
<tr>
<td width="22%">/WX</td>
<td width="32%">将警告视为错误</td>
<td width="46%">treat warnings as errors</td>
</tr>
<tr>
<td width="22%">/Tc<source /></td>
<td width="32%">将文件编译为 .c</td>
<td width="46%">compile file as .c</td>
</tr>
<tr>
<td width="22%">/Yc[file]</td>
<td width="32%">创建 .PCH 文件</td>
<td width="46%">create .PCH file</td>
</tr>
<tr>
<td width="22%">/Tp<source /></td>
<td width="32%">将文件编译为 .cpp</td>
<td width="46%">compile file as .cpp</td>
</tr>
<tr>
<td width="22%">/Yd</td>
<td width="32%">将调试信息放在每个 .OBJ 中</td>
<td width="46%">put debug info in every .OBJ</td>
</tr>
<tr>
<td width="22%">/TC</td>
<td width="32%">将所有文件编译为 .c</td>
<td width="46%">compile all files as .c</td>
</tr>
<tr>
<td width="22%">/TP</td>
<td width="32%">将所有文件编译为 .cpp</td>
<td width="46%">compile all files as .cpp</td>
</tr>
<tr>
<td width="22%">/Yu[file]</td>
<td width="32%">使用 .PCH 文件</td>
<td width="46%">use .PCH file</td>
</tr>
<tr>
<td width="22%">/V</td>
<td width="32%">设置版本字符串</td>
<td width="46%">set version string</td>
</tr>
<tr>
<td width="22%">/YX[file]</td>
<td width="32%">自动的 .PCH 文件</td>
<td width="46%">automatic .PCH</td>
</tr>
<tr>
<td width="22%">/w</td>
<td width="32%">禁用所有警告</td>
<td width="46%">disable all warnings</td>
</tr>
<tr>
<td width="22%">/Zm</td>
<td width="32%">最大内存分配（默认为 %）</td>
<td width="46%">max memory alloc (% of default)</td>
</tr>
<tr>
<td colspan="3" align="center" width="100%"><strong>-链接- </strong></td>
</tr>
<tr>
<td width="22%">/MD</td>
<td width="32%">与 MSVCRT.LIB 链接</td>
<td width="46%">link with MSVCRT.LIB</td>
</tr>
<tr>
<td width="22%">/MDd</td>
<td width="32%">与 MSVCRTD.LIB 调试库链接</td>
<td width="46%">link with MSVCRTD.LIB debug lib</td>
</tr>
<tr>
<td width="22%">/ML</td>
<td width="32%">与 LIBC.LIB 链接</td>
<td width="46%">link with LIBC.LIB</td>
</tr>
<tr>
<td width="22%">/MLd</td>
<td width="32%">与 LIBCD.LIB 调试库链接</td>
<td width="46%">link with LIBCD.LIB debug lib</td>
</tr>
<tr>
<td width="22%">/MT</td>
<td width="32%">与 LIBCMT.LIB 链接</td>
<td width="46%">link with LIBCMT.LIB</td>
</tr>
<tr>
<td width="22%">/MTd</td>
<td width="32%">与 LIBCMTD.LIB 调试库链接</td>
<td width="46%">link with LIBCMTD.LIB debug lib</td>
</tr>
<tr>
<td width="22%">/LD</td>
<td width="32%">创建 .DLL</td>
<td width="46%">Create .DLL</td>
</tr>
<tr>
<td width="22%">/F</td>
<td width="32%">设置堆栈大小</td>
<td width="46%">set stack size</td>
</tr>
<tr>
<td width="22%">/LDd</td>
<td width="32%">创建 .DLL 调试库</td>
<td width="46%">Create .DLL debug libary</td>
</tr>
<tr>
<td width="22%">/link</td>
<td width="32%">[链接器选项和库]</td>
<td width="46%">[linker options and libraries]</td>
</tr>
</tbody>
</table>
<p><a href="http://dl.dbank.com/c0cnp84orz" target="_blank">Click here to download the htmlfile.</a> <img src='http://www.h4ck.org.cn/wp-content/plugins/smilies-themer/Julianus/20x20-look_down.png' alt=':D' class='wp-smiley' /> <br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2011/11/cdelphi-execute-cmd-commands-and-get-result/" title="C/C++/Delphi 调用命令并且显示执行结果" rel="bookmark inlinks">C/C++/Delphi 调用命令并且显示执行结果</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/04/dejavu-fonts-ttf-2-33/" title="dejavu-fonts-ttf-2.33" rel="bookmark inlinks">dejavu-fonts-ttf-2.33</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/04/get-device-type/" title="获取指定类型的设备，符号链接" rel="bookmark inlinks">获取指定类型的设备，符号链接</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/01/drivers/" title="键盘过滤驱动勘误《寒江独钓》" rel="bookmark inlinks">键盘过滤驱动勘误《寒江独钓》</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/11/vs2010-idasdk6-2-ida-plugin-development/" title="VS2010 + IDASDK6.2搭建IDA Plugin开发环境" rel="bookmark inlinks">VS2010 + IDASDK6.2搭建IDA Plugin开发环境</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/12/moving-to-windows-x64-translate-to-ch/" title="Moving to Windows x64【翻译】" rel="bookmark inlinks">Moving to Windows x64【翻译】</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/wsock32-hook-send-and-recv-functions/" title="WSock32 Hook send and recv Functions" rel="bookmark inlinks">WSock32 Hook send and recv Functions</a><span class="count">( 1 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/10/c-strings/" title="C语言：字符串详解" rel="bookmark inlinks">C语言：字符串详解</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/11/vs-compile-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let them drag and drop files on your program</title>
		<link>http://www.h4ck.org.cn/2011/11/let-them-drag-and-drop-files-on-your-program/</link>
		<comments>http://www.h4ck.org.cn/2011/11/let-them-drag-and-drop-files-on-your-program/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 07:33:03 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3291</guid>
		<description><![CDATA[Let them drag and drop files on your program]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">unit</span> dropfile<span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">interface</span>
 <span style="color: #000000; font-weight: bold;">uses</span>
   Windows<span style="color: #000066;">,</span> Messages<span style="color: #000066;">,</span> SysUtils<span style="color: #000066;">,</span> Classes<span style="color: #000066;">,</span>
   Graphics<span style="color: #000066;">,</span> Controls<span style="color: #000066;">,</span> Forms<span style="color: #000066;">,</span> Dialogs<span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">type</span>
   TForm1 <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #000066;">&#40;</span>TForm<span style="color: #000066;">&#41;</span>
     <span style="color: #000000; font-weight: bold;">procedure</span> FormCreate<span style="color: #000066;">&#40;</span>Sender<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">TObject</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span>
     <span style="color: #808080; font-style: italic;">{ Private declarations }</span>
   <span style="color: #000000; font-weight: bold;">public</span>
     <span style="color: #808080; font-style: italic;">{ Public declarations }</span>
     <span style="color: #808080; font-style: italic;">// declare our DROPFILES message handler</span>
     <span style="color: #000000; font-weight: bold;">procedure</span> AcceptFiles<span style="color: #000066;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> msg <span style="color: #000066;">:</span> TMessage <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
     message WM_DROPFILES<span style="color: #000066;">;</span>
   <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">var</span>
   Form1<span style="color: #000066;">:</span> TForm1<span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">implementation</span>
 <span style="color: #000000; font-weight: bold;">uses</span>
   <span style="color: #808080; font-style: italic;">// this unit contains certain functions that we'll be using</span>
   ShellAPI<span style="color: #000066;">;</span>
 <span style="color: #008000; font-style: italic;">{$R *.DFM}</span></pre></td></tr></table></div>

<p><span id="more-3291"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code"><pre class="delphi" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">procedure</span> TForm1<span style="color: #000066;">.</span><span style="color: #006600;">AcceptFiles</span><span style="color: #000066;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> msg <span style="color: #000066;">:</span> TMessage <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">const</span>
   cnMaxFileNameLen <span style="color: #000066;">=</span> <span style="color: #0000ff;">255</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">var</span>
   i<span style="color: #000066;">,</span>
   nCount     <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">integer</span><span style="color: #000066;">;</span>
   acFileName <span style="color: #000066;">:</span> <span style="color: #000000; font-weight: bold;">array</span> <span style="color: #000066;">&#91;</span><span style="color: #0000ff;">0</span><span style="color: #000066;">..</span><span style="color: #006600;">cnMaxFileNameLen</span><span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">char</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">begin</span>
   <span style="color: #808080; font-style: italic;">// find out how many files we're accepting</span>
   nCount <span style="color: #000066;">:</span><span style="color: #000066;">=</span> DragQueryFile<span style="color: #000066;">&#40;</span> msg<span style="color: #000066;">.</span><span style="color: #006600;">WParam</span><span style="color: #000066;">,</span>
                            <span style="color: #9ac;">$FFFFFFFF</span><span style="color: #000066;">,</span>
                            acFileName<span style="color: #000066;">,</span>
                            cnMaxFileNameLen <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
   <span style="color: #808080; font-style: italic;">// query Windows one at a time for the file name</span>
   <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #0000ff;">0</span> <span style="color: #000000; font-weight: bold;">to</span> nCount<span style="color: #000066;">-</span><span style="color: #0000ff;">1</span> <span style="color: #000000; font-weight: bold;">do</span>
   <span style="color: #000000; font-weight: bold;">begin</span>
     DragQueryFile<span style="color: #000066;">&#40;</span> msg<span style="color: #000066;">.</span><span style="color: #006600;">WParam</span><span style="color: #000066;">,</span> i<span style="color: #000066;">,</span>
                    acFileName<span style="color: #000066;">,</span> cnMaxFileNameLen <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
     <span style="color: #808080; font-style: italic;">// do your thing with the acFileName</span>
     MessageBox<span style="color: #000066;">&#40;</span> Handle<span style="color: #000066;">,</span> acFileName<span style="color: #000066;">,</span> <span style="color: #ff0000;">''</span><span style="color: #000066;">,</span> MB_OK <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
   <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
   <span style="color: #808080; font-style: italic;">// let Windows know that you're done</span>
   DragFinish<span style="color: #000066;">&#40;</span> msg<span style="color: #000066;">.</span><span style="color: #006600;">WParam</span> <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">procedure</span> TForm1<span style="color: #000066;">.</span><span style="color: #006600;">FormCreate</span><span style="color: #000066;">&#40;</span>Sender<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">TObject</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">begin</span>
   <span style="color: #808080; font-style: italic;">// tell Windows that you're accepting drag and drop files</span>
   DragAcceptFiles<span style="color: #000066;">&#40;</span> Handle<span style="color: #000066;">,</span> <span style="color: #000000; font-weight: bold;">True</span> <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
   <span style="color: #808080; font-style: italic;">//&lt; &lt;&lt;</span>
 <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
 <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">.</span></pre></td></tr></table></div>

<p>link:<a href="http://www.chami.com/tips/delphi/111196D.html" target="_blank">http://www.chami.com/tips/delphi/111196D.html</a></pre>
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2010/11/glass-cmd-for-win7-32bit64bit/" title="Glass CMD For Win7 32Bit&#038;64Bit" rel="bookmark inlinks">Glass CMD For Win7 32Bit&#038;64Bit</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/10/delphi/" title="Delphi 关键字详解" rel="bookmark inlinks">Delphi 关键字详解</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/12/delphi-editor/" title="Delphi 记事本【有码有真相】" rel="bookmark inlinks">Delphi 记事本【有码有真相】</a><span class="count">( 4 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/unicode-base64/" title="字符转转换（汉字 Unicode Base64加密解密）" rel="bookmark inlinks">字符转转换（汉字 Unicode Base64加密解密）</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/08/attaion-virus-for-delphi/" title="大家注意一下这个【病毒】 ，专门针对delphi的，嵌入源码的病毒。" rel="bookmark inlinks">大家注意一下这个【病毒】 ，专门针对delphi的，嵌入源码的病毒。</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/01/pe-header-editor-v1-0/" title="PE头移位工具 v1.0" rel="bookmark inlinks">PE头移位工具 v1.0</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/ip-sender/" title="IP发送者(IP sender)" rel="bookmark inlinks">IP发送者(IP sender)</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/11/delphi-7-v7-3/" title="Delphi 7 优化精简全功能版 v7.3" rel="bookmark inlinks">Delphi 7 优化精简全功能版 v7.3</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/11/let-them-drag-and-drop-files-on-your-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OD Unicode String Format Convert v0.1</title>
		<link>http://www.h4ck.org.cn/2011/11/od-unicode-string-format-convert-v0-1/</link>
		<comments>http://www.h4ck.org.cn/2011/11/od-unicode-string-format-convert-v0-1/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 02:40:16 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[破解/汇编『Crack/Asm』]]></category>
		<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[Crack]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[IDA]]></category>
		<category><![CDATA[OD]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3287</guid>
		<description><![CDATA[OD Unicode String Format Convert v0.1]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/OD-Unicode.png" rel="lightbox" title="OD Unicode"><img title="OD Unicode" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/OD-Unicode.png" alt="" width="424" height="620" /></a></p>
<p>就像我们所熟知的那样，IDA对于Unicode和中文的串式参考并没有太好的处理，在这一方面不管是从插件还是ida自身的功能来看都要比OD的Unicode字符串搜索差得多。但是OD的字符串参考却不太好导入到IDA中于是就先是写了个<a href="http://www.h4ck.org.cn/2011/11/import-repeatable-comments-to-ida-via-script/" target="_blank">idc的脚本，用来导入数据</a>。今天又写了个小工具用来处理od解析出来的中文字符串参考。效果就是上面的样子，也许那天实在无聊了会改下OD的中文字符串搜索插件，让其可以直接导出数据。<br />
<span id="more-3287"></span><br />
今天又听到了一些不该听的事情，搞得我现在心情非常差劲。心里也非常的不舒服，有的时候事情就是这样，想躲都躲不过。当别人好心告诉你一些她认为是好事情的时候却不知道到了才知道tmd竟然是悲剧。</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/11/xm.png" rel="lightbox" title="xm"><img title="xm" src="http://www.h4ck.org.cn/wp-content/uploads//2011/11/xm.png" alt="" width="363" height="313" /></a></p>
<h4>现实就是这样，<span style="color: #ff0000;">于是与其遮遮掩掩，倒不如抛开胸膛让心在空气中燃烧！</span></h4>
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2010/09/cxjk/" title="程序监控专家 破解版" rel="bookmark inlinks">程序监控专家 破解版</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/07/chmmaker-2-6-keygen/" title="ChmMaker 2.6 内存注册机" rel="bookmark inlinks">ChmMaker 2.6 内存注册机</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/05/jinzuan-2010/" title="金钻文件夹加密大师 2010[破解版]" rel="bookmark inlinks">金钻文件夹加密大师 2010[破解版]</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/08/google-music-player-v0-2-1/" title="谷歌音乐播放器 v0.2.1（Google Music Player v0.2.1）" rel="bookmark inlinks">谷歌音乐播放器 v0.2.1（Google Music Player v0.2.1）</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/castalia-2011-for-codegear-delphi/" title="Castalia 2011 for CodeGear Delphi" rel="bookmark inlinks">Castalia 2011 for CodeGear Delphi</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/03/total-commander-7-56a-patch/" title="Total Commander 7.56a Patch" rel="bookmark inlinks">Total Commander 7.56a Patch</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/08/sniffer-pro-4-90-102-crack/" title="Sniffer Pro 4.90.102破解" rel="bookmark inlinks">Sniffer Pro 4.90.102破解</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/restorator-2009-4-0-build-1807-patch/" title="Restorator 2009 4.0 build 1807 Patch" rel="bookmark inlinks">Restorator 2009 4.0 build 1807 Patch</a><span class="count">( 1 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/11/od-unicode-string-format-convert-v0-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HashAB for iOS 4.x</title>
		<link>http://www.h4ck.org.cn/2011/10/hashab-for-ios-4-x/</link>
		<comments>http://www.h4ck.org.cn/2011/10/hashab-for-ios-4-x/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 12:47:02 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[ASM]]></category>
		<category><![CDATA[iOS]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3196</guid>
		<description><![CDATA[Finally I succeeded calculating the hashab code on window(xp - win7),but here is no code ,no bin.U can check the result on Linux.lol]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/10/Hash.png" rel="lightbox" title="Hash"><img class="alignleft size-full wp-image-3200" title="Hash" src="http://www.h4ck.org.cn/wp-content/uploads//2011/10/Hash.png" alt="" width="676" height="441" /></a></p>
<blockquote><p><span style="color: #ff00ff;">Finally I succeeded calculating the hashab code on windows(xp &#8211; win7),but here is no code ,no bin.U can check the result on Linux.lol <img src='http://www.h4ck.org.cn/wp-content/plugins/smilies-themer/Julianus/20x20-big_smile.png' alt=':)' class='wp-smiley' /> </span></p></blockquote>
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2011/10/tom-dowdy-found-in-itunes/" title="Tom Dowdy (Found in iTunes)" rel="bookmark inlinks">Tom Dowdy (Found in iTunes)</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/09/winasm-keygen-theme/" title="WinASM KeyGen 模板" rel="bookmark inlinks">WinASM KeyGen 模板</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/09/recovery-mode-and-dfu-mode/" title="iOS设备 恢复模式和DFU模式的区别【翻译】" rel="bookmark inlinks">iOS设备 恢复模式和DFU模式的区别【翻译】</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/radasm-3-0-0-7/" title="RadAsm 3.0.0.7" rel="bookmark inlinks">RadAsm 3.0.0.7</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/masm64-sdk/" title="MASM64 Sdk" rel="bookmark inlinks">MASM64 Sdk</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/08/ida-gdbserver-iphone-debug/" title="IDA + GDBServer实现iPhone程序远程调试" rel="bookmark inlinks">IDA + GDBServer实现iPhone程序远程调试</a><span class="count">( 4 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/09/yahei-consolas-1-12/" title="微软雅黑等宽字体" rel="bookmark inlinks">微软雅黑等宽字体</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/hex2ascii-ascii2hex/" title="HEX2ASCII &#038;&#038; ASCII2HEX" rel="bookmark inlinks">HEX2ASCII &#038;&#038; ASCII2HEX</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/10/hashab-for-ios-4-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HEX2ASCII &amp;&amp; ASCII2HEX</title>
		<link>http://www.h4ck.org.cn/2011/10/hex2ascii-ascii2hex/</link>
		<comments>http://www.h4ck.org.cn/2011/10/hex2ascii-ascii2hex/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 06:42:18 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[破解/汇编『Crack/Asm』]]></category>
		<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[ASM]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3189</guid>
		<description><![CDATA[; Author: Jake Commander
; Copyright The GeneSys Development System

HexEncode proc uses edi esi ebx pBuff:dword,dwLen:dword,pOutBuff:dword
;---------------------------------------
    mov    ebx, dwLen
    mov    edi, pOutBuff
    test    ebx, ebx
    mov    esi, pBuff
    jz      @F
    .repeat
      movzx  eax, byte ptr [esi]
      mov    ecx, eax
      add    edi, 2
      shr    ecx, 4
      and    eax, 1111b
      and    ecx, 1111b
      cmp    eax, 10
      sbb    edx, edx
      adc    eax, 0
      lea    eax, [eax+edx*8+'7']
      cmp    ecx, 10
      sbb    edx, edx
      adc    ecx, 0
      shl    eax, 8
      lea    ecx, [ecx+edx*8+'7']
      or      eax, ecx
      inc    esi
      mov    [edi-2], ax
      dec    ebx
    .until ZERO?
@@: mov    eax, edi
    mov    byte ptr [edi], 0
    sub    eax, pOutBuff
    ret
;---------------------------------------
HexEncode endp

; Author: Jake Commander
; Copyright The GeneSys Development System

HexDecode proc uses esi edi ebx pHexStr:dword,pOutBuffer:dword
;---------------------------------------
    mov    esi, pHexStr
    mov    edi, pOutBuffer
    jmp    @1
@@: and    ebx, 0Fh
    add    eax, ebx
    mov    [edi], al
    inc    edi
@1: movzx  edx, byte ptr[esi]
    cmp    edx, 40h
    sbb    ebx, ebx
    sub    edx, 37h
    and    ebx, 7
    inc    esi
    add    ebx, edx
    js      @F
    mov    eax, ebx
    shl    eax, 4
    mov    [edi], al
    movzx  edx, byte ptr [esi]
    cmp    edx, 40h
    sbb    ebx, ebx
    sub    edx, 37h
    and    ebx, 7
    inc    esi
    add    ebx, edx
    jns    @B
@@: ret
;---------------------------------------
HexDecode endp]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
</pre></td><td class="code"><pre class="asm" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">; Author: Jake Commander</span>
<span style="color: #666666; font-style: italic;">; Copyright The GeneSys Development System</span>
&nbsp;
HexEncode <span style="color: #000000; font-weight: bold;">proc</span> <span style="color: #000000; font-weight: bold;">uses</span> <span style="color: #00007f;">edi</span> <span style="color: #00007f;">esi</span> <span style="color: #00007f;">ebx</span> pBuff<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">dword</span><span style="color: #339933;">,</span>dwLen<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">dword</span><span style="color: #339933;">,</span>pOutBuff<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">dword</span>
<span style="color: #666666; font-style: italic;">;---------------------------------------</span>
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> dwLen
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #00007f;">edi</span><span style="color: #339933;">,</span> pOutBuff
    <span style="color: #00007f; font-weight: bold;">test</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> <span style="color: #00007f;">ebx</span>
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #00007f;">esi</span><span style="color: #339933;">,</span> pBuff
    <span style="color: #00007f; font-weight: bold;">jz</span>      <span style="color: #000000; font-weight: bold;">@F</span>
    <span style="color: #339933;">.</span><span style="color: #000000; font-weight: bold;">repeat</span>
      <span style="color: #00007f; font-weight: bold;">movzx</span>  <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #000000; font-weight: bold;">ptr</span> <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">esi</span><span style="color: #009900; font-weight: bold;">&#93;</span>
      <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #00007f;">ecx</span><span style="color: #339933;">,</span> <span style="color: #00007f;">eax</span>
      <span style="color: #00007f; font-weight: bold;">add</span>    <span style="color: #00007f;">edi</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">2</span>
      <span style="color: #00007f; font-weight: bold;">shr</span>    <span style="color: #00007f;">ecx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">4</span>
      <span style="color: #00007f; font-weight: bold;">and</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1111b</span>
      <span style="color: #00007f; font-weight: bold;">and</span>    <span style="color: #00007f;">ecx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1111b</span>
      <span style="color: #00007f; font-weight: bold;">cmp</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">10</span>
      <span style="color: #00007f; font-weight: bold;">sbb</span>    <span style="color: #00007f;">edx</span><span style="color: #339933;">,</span> <span style="color: #00007f;">edx</span>
      <span style="color: #00007f; font-weight: bold;">adc</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">0</span>
      <span style="color: #00007f; font-weight: bold;">lea</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">eax</span><span style="color: #339933;">+</span><span style="color: #00007f;">edx</span><span style="color: #339933;">*</span><span style="color: #0000ff;">8</span><span style="color: #339933;">+</span><span style="color: #7f007f;">'7'</span><span style="color: #009900; font-weight: bold;">&#93;</span>
      <span style="color: #00007f; font-weight: bold;">cmp</span>    <span style="color: #00007f;">ecx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">10</span>
      <span style="color: #00007f; font-weight: bold;">sbb</span>    <span style="color: #00007f;">edx</span><span style="color: #339933;">,</span> <span style="color: #00007f;">edx</span>
      <span style="color: #00007f; font-weight: bold;">adc</span>    <span style="color: #00007f;">ecx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">0</span>
      <span style="color: #00007f; font-weight: bold;">shl</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">8</span>
      <span style="color: #00007f; font-weight: bold;">lea</span>    <span style="color: #00007f;">ecx</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">ecx</span><span style="color: #339933;">+</span><span style="color: #00007f;">edx</span><span style="color: #339933;">*</span><span style="color: #0000ff;">8</span><span style="color: #339933;">+</span><span style="color: #7f007f;">'7'</span><span style="color: #009900; font-weight: bold;">&#93;</span>
      <span style="color: #00007f; font-weight: bold;">or</span>      <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #00007f;">ecx</span>
      <span style="color: #00007f; font-weight: bold;">inc</span>    <span style="color: #00007f;">esi</span>
      <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">edi</span><span style="color: #339933;">-</span><span style="color: #0000ff;">2</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #00007f;">ax</span>
      <span style="color: #00007f; font-weight: bold;">dec</span>    <span style="color: #00007f;">ebx</span>
    <span style="color: #339933;">.</span><span style="color: #000000; font-weight: bold;">until</span> <span style="color: #000000; font-weight: bold;">ZERO?</span>
@@<span style="color: #339933;">:</span> <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #00007f;">edi</span>
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #000000; font-weight: bold;">ptr</span> <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">edi</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">0</span>
    <span style="color: #00007f; font-weight: bold;">sub</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> pOutBuff
    <span style="color: #00007f; font-weight: bold;">ret</span>
<span style="color: #666666; font-style: italic;">;---------------------------------------</span>
HexEncode <span style="color: #000000; font-weight: bold;">endp</span></pre></td></tr></table></div>

<p><span id="more-3189"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="asm" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">; Author: Jake Commander</span>
<span style="color: #666666; font-style: italic;">; Copyright The GeneSys Development System</span>
&nbsp;
HexDecode <span style="color: #000000; font-weight: bold;">proc</span> <span style="color: #000000; font-weight: bold;">uses</span> <span style="color: #00007f;">esi</span> <span style="color: #00007f;">edi</span> <span style="color: #00007f;">ebx</span> pHexStr<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">dword</span><span style="color: #339933;">,</span>pOutBuffer<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">dword</span>
<span style="color: #666666; font-style: italic;">;---------------------------------------</span>
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #00007f;">esi</span><span style="color: #339933;">,</span> pHexStr
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #00007f;">edi</span><span style="color: #339933;">,</span> pOutBuffer
    <span style="color: #00007f; font-weight: bold;">jmp</span>    @<span style="color: #0000ff;">1</span>
@@<span style="color: #339933;">:</span> <span style="color: #00007f; font-weight: bold;">and</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">0Fh</span>
    <span style="color: #00007f; font-weight: bold;">add</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #00007f;">ebx</span>
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">edi</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #00007f;">al</span>
    <span style="color: #00007f; font-weight: bold;">inc</span>    <span style="color: #00007f;">edi</span>
@<span style="color: #0000ff;">1</span><span style="color: #339933;">:</span> <span style="color: #00007f; font-weight: bold;">movzx</span>  <span style="color: #00007f;">edx</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #000000; font-weight: bold;">ptr</span><span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">esi</span><span style="color: #009900; font-weight: bold;">&#93;</span>
    <span style="color: #00007f; font-weight: bold;">cmp</span>    <span style="color: #00007f;">edx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">40h</span>
    <span style="color: #00007f; font-weight: bold;">sbb</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> <span style="color: #00007f;">ebx</span>
    <span style="color: #00007f; font-weight: bold;">sub</span>    <span style="color: #00007f;">edx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">37h</span>
    <span style="color: #00007f; font-weight: bold;">and</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">7</span>
    <span style="color: #00007f; font-weight: bold;">inc</span>    <span style="color: #00007f;">esi</span>
    <span style="color: #00007f; font-weight: bold;">add</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> <span style="color: #00007f;">edx</span>
    <span style="color: #00007f; font-weight: bold;">js</span>      <span style="color: #000000; font-weight: bold;">@F</span>
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #00007f;">ebx</span>
    <span style="color: #00007f; font-weight: bold;">shl</span>    <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">4</span>
    <span style="color: #00007f; font-weight: bold;">mov</span>    <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">edi</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #00007f;">al</span>
    <span style="color: #00007f; font-weight: bold;">movzx</span>  <span style="color: #00007f;">edx</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #000000; font-weight: bold;">ptr</span> <span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #00007f;">esi</span><span style="color: #009900; font-weight: bold;">&#93;</span>
    <span style="color: #00007f; font-weight: bold;">cmp</span>    <span style="color: #00007f;">edx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">40h</span>
    <span style="color: #00007f; font-weight: bold;">sbb</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> <span style="color: #00007f;">ebx</span>
    <span style="color: #00007f; font-weight: bold;">sub</span>    <span style="color: #00007f;">edx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">37h</span>
    <span style="color: #00007f; font-weight: bold;">and</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">7</span>
    <span style="color: #00007f; font-weight: bold;">inc</span>    <span style="color: #00007f;">esi</span>
    <span style="color: #00007f; font-weight: bold;">add</span>    <span style="color: #00007f;">ebx</span><span style="color: #339933;">,</span> <span style="color: #00007f;">edx</span>
    <span style="color: #00007f; font-weight: bold;">jns</span>    <span style="color: #000000; font-weight: bold;">@B</span>
@@<span style="color: #339933;">:</span> <span style="color: #00007f; font-weight: bold;">ret</span>
<span style="color: #666666; font-style: italic;">;---------------------------------------</span>
HexDecode <span style="color: #000000; font-weight: bold;">endp</span></pre></td></tr></table></div>

<p>Link:<a href="http://www.winasm.net/forum/index.php?showtopic=2618" target="_blank">http://www.winasm.net/forum/index.php?showtopic=2618</a><br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2011/10/hashab-for-ios-4-x/" title="HashAB for iOS 4.x " rel="bookmark inlinks">HashAB for iOS 4.x </a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/masm64-sdk/" title="MASM64 Sdk" rel="bookmark inlinks">MASM64 Sdk</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/11/high-level-assembly-ide/" title="High Level Assembly IDE" rel="bookmark inlinks">High Level Assembly IDE</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/radasm-3-0-0-7/" title="RadAsm 3.0.0.7" rel="bookmark inlinks">RadAsm 3.0.0.7</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/09/yahei-consolas-1-12/" title="微软雅黑等宽字体" rel="bookmark inlinks">微软雅黑等宽字体</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/dbgasm-v2-2-2-0/" title="DbgASM V2.2.2.0版[RedASM]" rel="bookmark inlinks">DbgASM V2.2.2.0版[RedASM]</a><span class="count">( 2 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/09/winasm-keygen-theme/" title="WinASM KeyGen 模板" rel="bookmark inlinks">WinASM KeyGen 模板</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/10/masm-junk-code/" title="MASM Junk Code" rel="bookmark inlinks">MASM Junk Code</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/10/hex2ascii-ascii2hex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0</title>
		<link>http://www.h4ck.org.cn/2011/09/embarcadero-delphi-xe2-rtm-v16-0-4256-43595-lite-v5-0/</link>
		<comments>http://www.h4ck.org.cn/2011/09/embarcadero-delphi-xe2-rtm-v16-0-4256-43595-lite-v5-0/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 16:18:19 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[软件共享『SoftWare』]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3154</guid>
		<description><![CDATA[Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-Splash.png" rel="lightbox" title="Delphi XE2 Splash"><img title="Delphi XE2 Splash" src="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-Splash.png" alt="" width="631" height="402" /></a></p>
<p>Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>作者：lsuper<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
发布历史：<br />
2011.09.09 &#8211; v5.0<br />
1、根据 RTM v16.0.4256.43595 原版制作<br />
2011.08.08 &#8211; v5.0 Beta8<br />
1、根据 beta8 v16.0.4223.41907 原版制作<br />
2、为便于大家试用，写了一个 XE2Resetter 外挂<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<span id="more-3154"></span><br />
主程序窗口：</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-Main.png" rel="lightbox" title="Delphi XE2 Main"><img title="Delphi XE2 Main" src="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-Main.png" alt="" width="598" height="412" /></a></p>
<p>关于窗口：</p>
<p><a href="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-About.png" rel="lightbox" title="Delphi XE2 About"><img title="Delphi XE2 About" src="http://www.h4ck.org.cn/wp-content/uploads//2011/09/Delphi-XE2-About.png" alt="" width="584" height="535" /></a></p>
<p>试用序列号申请：<a href="https://downloads.embarcadero.com/free/delphi" target="_blank">https://downloads.embarcadero.com/free/delphi</a></p>
<p>境内下载地址：<a href="境内下载地址：http://115.com/file/dn163afm  境外下载地址：http://uploading.com/files/1bfea8a2/lsuper_Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0.rar/" target="_blank">http://115.com/file/dn163afm</a></p>
<p>境外下载地址：<a href="http://uploading.com/files/1bfea8a2/lsuper_Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0.rar/" target="_blank">http://uploading.com/files/1bfea8a2/lsuper_Embarcadero.Delphi.XE2.RTM.v16.0.4256.43595.Lite.v5.0.rar/</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>已知问题：</p>
<p>1、在 Windows 2003 x64 下 Debug x64 程序会报 Unable to scan program&#8217;s header. 或者 Debugger Assertion Failure: “initProc” in ..\win32src\wmcevaldelphi.cpp at line 39 的错误，这是原版的问题，推荐还是用 Windows 7 x64 吧，这个没问题</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>发布说明：</p>
<p>相对原始版本，这个 Lite 精简且只精简了原 RTM 的以下支持程序、第三方工具内容：</p>
<p>1、FireMonkey-iOS 目录下的 FireMonkey-iOS.dmg，这个是 FireMonkey 在 xcode 下配合 FPC 使用的支持库；详情参考：http://www.itwriting.com/blog/4841-hands-on-with-delphi-xe2-for-apple-ios.html<br />
2、PAServer 目录下的 setup_paserver.exe/zip，用于 MacOSX 远程调试；详情参考：http://www.simonjstuart.com/2011/09/03/rad-studio-xe2-setting-it-up-for-a-mac-step-by-step-illustrated-guide/<br />
3、InstallAware 目录下的 myahe_bds_web.exe，个人还是比较推荐完全免费的 Inno Setup ;&gt;<br />
4、AQTime、CodeSite Express、Documentation Insight、FastReport、FinalBuilder、RaveReports、SvnClient 等；</p>
<p>还有，原版依赖 300多兆的 .NET Framework 3.5 sp1，我把它依赖的文件提取出来整合到安装程序中了，所以还是与以往 lite 一样，仅依赖 .NET Framework 2.0。</p>
<p>其他的源码、支持库等都是绝对完整的。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>特别说明：</p>
<p>这个版本的来源于官方 Beta/RTM 正式试用版，版权归 Embarcadero 所有，请在下载后 24 小时内删除。<br />
重新打包纯粹个人兴趣所致，希望能方便网友测试、交流。作为 Delphi 多年的 Fans，我们都希望 Delphi 能做得更好！<br />
如果您觉得 Delphi XE2 不错，请购买正版，更好的支持 Embarcadero 的发展！</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>特别感谢：</p>
<p>1、&#8230;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>FAQ：</p>
<p>1、现在 Embarcadero 的安装程序已经很快了，为啥还要 Lite/Repack？</p>
<p>相对 D2006/2007 的安装确实进步了不少。不过依然存在安装时间长，安装完遗留大量垃圾文件、卸载可能遗留垃圾等问题。这个 Lite 或者说是 Repack，就是为了方便 Delphier 们能方便的尝试 Delphi 的新功能，同时对系统的影响降到最小。至于用 Lite/Repack 还是原版，见人见智啦。</p>
<p>2、这个版本的来源？</p>
<p>这个版本的来源于官方 Beta/RTM 正式试用版，版权归 Embarcadero 所有，请在下载后 24 小时内删除。重新打包纯粹个人兴趣所致，希望能方便网友测试、交流。作为 Delphi 多年的 Fans，我们都希望 Delphi 能做得更好！如果您觉得 Delphi XE2 不错，请购买正版，更好的支持 Embarcadero 的发展！</p>
<p>3、这个 lite 版完整么？</p>
<p>说是 lite 版，其实就是原版 Delphi XE2 部分的 Repack，所有 Delphi XE2 的功能都是完整的。我所做的就是在一个绝对干净的 VMWware XP 中安装官方的版本，除了只安装 Delphi XE2，不包括 Rave 其他一切默认。安装出来的 Disk 文件与原始标准的对比，提取所有安装的文件、注册表啥的变化，然后用 Inno 重新封装。所以这个其实不是 lite 而是 repack。</p>
<p>4、不是 For Win32 的么？为什么还必须要求安装 .NET 2.0？</p>
<p>因为 Delphi 2007 起，Delphi IDE 的核心组件依赖于 .NET，诸如 asmview 等，如果没有 .NET 无法正常运行，而没有 asmview 调试时的 Hint 无法显示（个人认为这个功能绝对总要！这也是网上类似版本 BUG 的根源）。</p>
<p>5、怎么没有 Delphi For .NET？</p>
<p>Delphi 是做 Win32 的。</p>
<p>6、怎么没有 C++Builder ？</p>
<p>Lsuper 是做 Delphi 的。</p>
<p>7、怎么默认不安装 Together ？</p>
<p>因为 Together 组件需要 Microsoft Visual J# 2.0 的支持，而且 Together 使用者很少，经网友建议暂时把 Together 作为可选组件安装。</p>
<p>8、怎么软件中没有帮助？</p>
<p>这个软件中是单独安装的，我已经 Rip 了，有机会再发布吧 :&gt;</p>
<p>9、可否增加某某某功能？</p>
<p>那多交流啊 &#8230;</p>
<p>A、出现 xxx 问题啦</p>
<p>欢迎到盒子、大富翁、B4A 等论坛上提出您的反馈</p>
<p>.o(∩_∩)o..<br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://www.h4ck.org.cn/2009/11/delphi-7-v7-3/" title="Delphi 7 优化精简全功能版 v7.3" rel="bookmark inlinks">Delphi 7 优化精简全功能版 v7.3</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/01/write-a-virus/" title="我会写病毒？" rel="bookmark inlinks">我会写病毒？</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/06/google-music-player-beta-v1-0/" title="Google Music Player Beta v1.0" rel="bookmark inlinks">Google Music Player Beta v1.0</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/06/cracker-editor/" title="破解专用记事本 【修正版】" rel="bookmark inlinks">破解专用记事本 【修正版】</a><span class="count">( 0 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/08/user-agent-simulator-v0-1/" title="User Agent Simulator V0.1" rel="bookmark inlinks">User Agent Simulator V0.1</a><span class="count">( 3 )</span></li>
<li><a href="http://www.h4ck.org.cn/2011/05/reg_multi_sz/" title="蛋疼的 REG_MULTI_SZ" rel="bookmark inlinks">蛋疼的 REG_MULTI_SZ</a><span class="count">( 4 )</span></li>
<li><a href="http://www.h4ck.org.cn/2009/12/delphi-editor/" title="Delphi 记事本【有码有真相】" rel="bookmark inlinks">Delphi 记事本【有码有真相】</a><span class="count">( 4 )</span></li>
<li><a href="http://www.h4ck.org.cn/2010/12/qq-chat/" title="QQ强行聊天器" rel="bookmark inlinks">QQ强行聊天器</a><span class="count">( 2 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/09/embarcadero-delphi-xe2-rtm-v16-0-4256-43595-lite-v5-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MASM &#8211; error A2042: statement too complex</title>
		<link>http://www.h4ck.org.cn/2011/09/masm-error-a2042-statement-too-complex/</link>
		<comments>http://www.h4ck.org.cn/2011/09/masm-error-a2042-statement-too-complex/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 02:22:27 +0000</pubDate>
		<dc:creator>obaby</dc:creator>
				<category><![CDATA[程序设计『Programing』]]></category>
		<category><![CDATA[ASN]]></category>

		<guid isPermaLink="false">http://www.h4ck.org.cn/?p=3150</guid>
		<description><![CDATA[MASM - error A2042: statement too complex]]></description>
			<content:encoded><![CDATA[<p>在定义比较长的数据的时候会因为数据超过行限制而出现statement too complex或者line to long的错误提示，可以使用下面的代码：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td class="code"><pre class="asm" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««</span>
    <span style="color: #000000; font-weight: bold;">include</span> \masm32\<span style="color: #000000; font-weight: bold;">include</span>\masm32rt<span style="color: #339933;">.</span><span style="color: #00007f; font-weight: bold;">inc</span>
<span style="color: #666666; font-style: italic;">; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««</span>
    <span style="color: #000000; font-weight: bold;">.data</span>
      kostka1 <span style="color: #000000; font-weight: bold;">real4</span> <span style="color: #339933;">-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span>
              <span style="color: #000000; font-weight: bold;">real4</span> <span style="color: #339933;">-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span>
              <span style="color: #000000; font-weight: bold;">real4</span>  <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span>
              <span style="color: #000000; font-weight: bold;">real4</span> <span style="color: #339933;">-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span>
              <span style="color: #000000; font-weight: bold;">real4</span> <span style="color: #339933;">-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span>
              <span style="color: #000000; font-weight: bold;">real4</span> <span style="color: #339933;">-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span>
              <span style="color: #000000; font-weight: bold;">real4</span>  <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span>
              <span style="color: #000000; font-weight: bold;">real4</span> <span style="color: #339933;">-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1.0</span><span style="color: #339933;">,-</span><span style="color: #0000ff;">1.0</span>
&nbsp;
      _SIZEOF_kostka1 = <span style="color: #009900; font-weight: bold;">&#40;</span>$ <span style="color: #339933;">-</span> kostka1<span style="color: #009900; font-weight: bold;">&#41;</span>
      dd_SIZEOF_kostka1 <span style="color: #000000; font-weight: bold;">dd</span> <span style="color: #009900; font-weight: bold;">&#40;</span>$ <span style="color: #339933;">-</span> kostka1<span style="color: #009900; font-weight: bold;">&#41;</span>
&nbsp;
      tmp <span style="color: #000000; font-weight: bold;">TEXTEQU</span> <span style="color: #339933;">%</span>_SIZEOF_kostka1
      <span style="color: #339933;">%</span> <span style="color: #000000; font-weight: bold;">echo</span> _SIZEOF_kostka1 = tmp
&nbsp;
    <span style="color: #000000; font-weight: bold;">.code</span>
<span style="color: #666666; font-style: italic;">; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««</span>
start<span style="color: #339933;">:</span>
<span style="color: #666666; font-style: italic;">; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««</span>
    print ustr$<span style="color: #009900; font-weight: bold;">&#40;</span>dd_SIZEOF_kostka1<span style="color: #009900; font-weight: bold;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">13</span><span style="color: #339933;">,</span><span style="color: #0000ff;">10</span>
    <span style="color: #00007f; font-weight: bold;">mov</span>   <span style="color: #00007f;">eax</span><span style="color: #339933;">,</span> input<span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">13</span><span style="color: #339933;">,</span><span style="color: #0000ff;">10</span><span style="color: #339933;">,</span><span style="color: #7f007f;">&quot;Press enter to exit...&quot;</span><span style="color: #009900; font-weight: bold;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">exit</span>
<span style="color: #666666; font-style: italic;">; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««</span>
<span style="color: #000000; font-weight: bold;">end</span> start</pre></td></tr></table></div>

<p><span id="more-3150"></span><br />
如果是单纯的数据的话下面的代码也是一样的：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="asm" style="font-family:monospace;">array <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #0000ff;">030h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">031h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">032h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">033h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">034h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">035h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">036h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">037h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">038h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">039h</span>
      <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #0000ff;">030h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">031h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">032h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">033h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">034h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">035h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">036h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">037h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">038h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">039h</span>
      <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #0000ff;">030h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">031h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">032h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">033h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">034h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">035h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">036h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">037h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">038h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">039h</span>
      <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #0000ff;">030h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">031h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">032h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">033h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">034h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">035h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">036h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">037h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">038h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">039h</span>
      <span style="color: #000000; font-weight: bold;">db</span> <span style="color: #0000ff;">030h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">031h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">032h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">033h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">034h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">035h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">036h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">037h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">038h</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">039h</span>
array_len EQU $ <span style="color: #339933;">-</span> <span style="color: #000000; font-weight: bold;">OFFSET</span> array</pre></td></tr></table></div>

<p>如果是数组可以用下面的方式：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="asm" style="font-family:monospace;"> pic1 <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
      <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">1</span>
SIZEOFpic1 EQU $<span style="color: #339933;">-</span>pic1
pic2 <span style="color: #000000; font-weight: bold;">byte</span> <span style="color: #0000ff;">10</span><span style="color: #339933;">*</span><span style="color: #0000ff;">10</span> <span style="color: #000000; font-weight: bold;">dup</span><span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">1</span><span style="color: #009900; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

<h3>相关文章</h3>
<ul class="related_posts">
<li>没有找到.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.h4ck.org.cn/2011/09/masm-error-a2042-statement-too-complex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

