<?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>
	「Step to UEFI (15） &#8212;&#8211; 命令行参数 Again」的评论	</title>
	<atom:link href="https://www.lab-z.com/stu15/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lab-z.com/stu15/</link>
	<description></description>
	<lastBuildDate>Tue, 01 Mar 2016 03:44:06 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		评论者：ziv2013		</title>
		<link>https://www.lab-z.com/stu15/#comment-4989</link>

		<dc:creator><![CDATA[ziv2013]]></dc:creator>
		<pubDate>Thu, 09 Oct 2014 11:48:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.lab-z.com/?p=2197#comment-4989</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.lab-z.com/stu15/#comment-4987&quot;&gt;snowman1101&lt;/a&gt;。

具体怎么做？ 不懂]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.lab-z.com/stu15/#comment-4987">snowman1101</a>。</p>
<p>具体怎么做？ 不懂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：snowman1101		</title>
		<link>https://www.lab-z.com/stu15/#comment-4987</link>

		<dc:creator><![CDATA[snowman1101]]></dc:creator>
		<pubDate>Thu, 09 Oct 2014 07:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.lab-z.com/?p=2197#comment-4987</guid>

					<description><![CDATA[你有没有试一下 去掉  int EFIAPI main 的 EFIAPI  
int main (  IN int Argc,  IN char **Argv  )]]></description>
			<content:encoded><![CDATA[<p>你有没有试一下 去掉  int EFIAPI main 的 EFIAPI<br />
int main (  IN int Argc,  IN char **Argv  )</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：snowman1101		</title>
		<link>https://www.lab-z.com/stu15/#comment-4986</link>

		<dc:creator><![CDATA[snowman1101]]></dc:creator>
		<pubDate>Thu, 09 Oct 2014 07:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.lab-z.com/?p=2197#comment-4986</guid>

					<description><![CDATA[按照你图片的结果，你应该是接收到了一个双字节字符串的指针。
也许是EDK版本问题，也可能是SHELL的问题。
总之你想要接收一个单字节的命令行地址，系统却传给你了一个双字节的。

不过EDK中默认用的是双字节，而且上面也说了 想要访问命令行要转换类型
  Note that the UEFI command line is composed of 16-bit UCS2 wide characters.
  The easiest way to access the command line parameters is to cast Argv as:
      wchar_t **wArgv = (wchar_t **)Argv;

可我在实机测试的结果却是接收到的单字节，也许是我用的shell 自动转换了？]]></description>
			<content:encoded><![CDATA[<p>按照你图片的结果，你应该是接收到了一个双字节字符串的指针。<br />
也许是EDK版本问题，也可能是SHELL的问题。<br />
总之你想要接收一个单字节的命令行地址，系统却传给你了一个双字节的。</p>
<p>不过EDK中默认用的是双字节，而且上面也说了 想要访问命令行要转换类型<br />
  Note that the UEFI command line is composed of 16-bit UCS2 wide characters.<br />
  The easiest way to access the command line parameters is to cast Argv as:<br />
      wchar_t **wArgv = (wchar_t **)Argv;</p>
<p>可我在实机测试的结果却是接收到的单字节，也许是我用的shell 自动转换了？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：ziv2013		</title>
		<link>https://www.lab-z.com/stu15/#comment-4985</link>

		<dc:creator><![CDATA[ziv2013]]></dc:creator>
		<pubDate>Thu, 09 Oct 2014 06:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lab-z.com/?p=2197#comment-4985</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.lab-z.com/stu15/#comment-4984&quot;&gt;snowman1101&lt;/a&gt;。

我测试了一下，sizeof(char) 确实是 1

现在不清楚为什么会出现这样的结果.....]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.lab-z.com/stu15/#comment-4984">snowman1101</a>。</p>
<p>我测试了一下，sizeof(char) 确实是 1</p>
<p>现在不清楚为什么会出现这样的结果&#8230;..</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：snowman1101		</title>
		<link>https://www.lab-z.com/stu15/#comment-4984</link>

		<dc:creator><![CDATA[snowman1101]]></dc:creator>
		<pubDate>Thu, 09 Oct 2014 04:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.lab-z.com/?p=2197#comment-4984</guid>

					<description><![CDATA[不知道为什么会有这样的结果  char的话就是单字节，不应该出现双字节的问题
我在实机（x64）测试了一下 只有
printf(&quot;Arg[%d]: %s\n&quot;,i,Argv[i]);
会正常显示]]></description>
			<content:encoded><![CDATA[<p>不知道为什么会有这样的结果  char的话就是单字节，不应该出现双字节的问题<br />
我在实机（x64）测试了一下 只有<br />
printf(&#8220;Arg[%d]: %s\n&#8221;,i,Argv[i]);<br />
会正常显示</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
