<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论：DLL基础</title>
	<atom:link href="http://www.boluor.com/dll-base.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.boluor.com/dll-base.html</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 12:01:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>由：boluor</title>
		<link>http://www.boluor.com/dll-base.html/comment-page-1#comment-1155</link>
		<dc:creator>boluor</dc:creator>
		<pubDate>Sun, 16 May 2010 14:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.boluor.com/blog/?p=60#comment-1155</guid>
		<description>当时写的时候，用dll1.lib这名字而不是上面程序中出现的MyDll.lib，就是为了能够区别开。不过确实没有直接在代码中写注释更直观。我添加了注释。</description>
		<content:encoded><![CDATA[<p>当时写的时候，用dll1.lib这名字而不是上面程序中出现的MyDll.lib，就是为了能够区别开。不过确实没有直接在代码中写注释更直观。我添加了注释。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：sandy</title>
		<link>http://www.boluor.com/dll-base.html/comment-page-1#comment-1154</link>
		<dc:creator>sandy</dc:creator>
		<pubDate>Sun, 16 May 2010 14:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.boluor.com/blog/?p=60#comment-1154</guid>
		<description>其实你如果仔细看的话，作者是有说明这点的：“如果DLL使用的是def文件，要删除TestDll.h文件中关键字extern &quot;C&quot;。”意思是如果不带extern &quot;C&quot;则使用的是def导出而不是dllimport关键字导出，只不过的确没有说的很明白，不仔细看的话看不到而已。
不过也不至于调试很长时间吧，缺少extern &quot;C&quot;导致的链接错误一眼就看出来了，马上就可以修正啊。

PS：我在GCC、VC6、VC2005上都测试通过了，只不过是把_declspec换成__declspec而已，为什么要注明“基于VC6”？？

boluor你也稍作修改吧，免得新人继续挠头。。。</description>
		<content:encoded><![CDATA[<p>其实你如果仔细看的话，作者是有说明这点的：“如果DLL使用的是def文件，要删除TestDll.h文件中关键字extern &#8220;C&#8221;。”意思是如果不带extern &#8220;C&#8221;则使用的是def导出而不是dllimport关键字导出，只不过的确没有说的很明白，不仔细看的话看不到而已。<br />
不过也不至于调试很长时间吧，缺少extern &#8220;C&#8221;导致的链接错误一眼就看出来了，马上就可以修正啊。</p>
<p>PS：我在GCC、VC6、VC2005上都测试通过了，只不过是把_declspec换成__declspec而已，为什么要注明“基于VC6”？？</p>
<p>boluor你也稍作修改吧，免得新人继续挠头。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：yangqisheng</title>
		<link>http://www.boluor.com/dll-base.html/comment-page-1#comment-1151</link>
		<dc:creator>yangqisheng</dc:creator>
		<pubDate>Sun, 16 May 2010 11:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.boluor.com/blog/?p=60#comment-1151</guid>
		<description>博主好好改改代码，
//DllTest.h
#pragma comment(lib,&quot;dll1.lib&quot;)
_declspec(dllimport) int Max(int a,int b);
_declspec(dllimport) int Min(int a,int b);
前面少了extern &quot;C&quot; .我调试了很长时间才看到。
还有，要注明基于VC6</description>
		<content:encoded><![CDATA[<p>博主好好改改代码，<br />
//DllTest.h<br />
#pragma comment(lib,&#8221;dll1.lib&#8221;)<br />
_declspec(dllimport) int Max(int a,int b);<br />
_declspec(dllimport) int Min(int a,int b);<br />
前面少了extern &#8220;C&#8221; .我调试了很长时间才看到。<br />
还有，要注明基于VC6</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：huangweiwei</title>
		<link>http://www.boluor.com/dll-base.html/comment-page-1#comment-1048</link>
		<dc:creator>huangweiwei</dc:creator>
		<pubDate>Mon, 21 Dec 2009 08:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.boluor.com/blog/?p=60#comment-1048</guid>
		<description>恩呢，多谢指教。路漫漫其修远兮，吾将上下而求索 ^_^</description>
		<content:encoded><![CDATA[<p>恩呢，多谢指教。路漫漫其修远兮，吾将上下而求索 ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：boluor</title>
		<link>http://www.boluor.com/dll-base.html/comment-page-1#comment-1047</link>
		<dc:creator>boluor</dc:creator>
		<pubDate>Mon, 21 Dec 2009 03:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.boluor.com/blog/?p=60#comment-1047</guid>
		<description>API? 《windows核心编程》上第Ⅳ部分 动态链接库，好好看看，其中就有 DLL注入和API拦截 的例子。API你查手册就可以了，这本书上重点不是API。</description>
		<content:encoded><![CDATA[<p>API? 《windows核心编程》上第Ⅳ部分 动态链接库，好好看看，其中就有 DLL注入和API拦截 的例子。API你查手册就可以了，这本书上重点不是API。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：huangweiwei</title>
		<link>http://www.boluor.com/dll-base.html/comment-page-1#comment-1045</link>
		<dc:creator>huangweiwei</dc:creator>
		<pubDate>Mon, 21 Dec 2009 01:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.boluor.com/blog/?p=60#comment-1045</guid>
		<description>受用了，API那块我还得多看《windows 核心编程》^_^</description>
		<content:encoded><![CDATA[<p>受用了，API那块我还得多看《windows 核心编程》^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：boluor</title>
		<link>http://www.boluor.com/dll-base.html/comment-page-1#comment-5</link>
		<dc:creator>boluor</dc:creator>
		<pubDate>Thu, 14 May 2009 01:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.boluor.com/blog/?p=60#comment-5</guid>
		<description>汗...改了一些.有错再提下。</description>
		<content:encoded><![CDATA[<p>汗&#8230;改了一些.有错再提下。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：sandy1</title>
		<link>http://www.boluor.com/dll-base.html/comment-page-1#comment-4</link>
		<dc:creator>sandy1</dc:creator>
		<pubDate>Wed, 13 May 2009 17:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.boluor.com/blog/?p=60#comment-4</guid>
		<description>你看看你转的文章，错误有多少……连代码都帖错了……</description>
		<content:encoded><![CDATA[<p>你看看你转的文章，错误有多少……连代码都帖错了……</p>
]]></content:encoded>
	</item>
</channel>
</rss>
