<?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>Comments for bits and bytes</title>
	<atom:link href="http://ntcoder.com/bab/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://ntcoder.com/bab</link>
	<description>C, C++, VC++, C#, VB.net, Debugging, Dump analysis, Windbg, and Visual Studio related stuff</description>
	<lastBuildDate>Fri, 24 Feb 2012 21:14:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on How to enable LARGEADDRESSAWARE? by Nibu Thomas</title>
		<link>http://ntcoder.com/bab/2012/02/22/how-to-enable-largeaddressaware/#comment-3015</link>
		<dc:creator>Nibu Thomas</dc:creator>
		<pubDate>Fri, 24 Feb 2012 21:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://ntcoder.com/bab/?p=2388#comment-3015</guid>
		<description>Hi Naveen,

&gt;&gt; One doubt, what was the purpose of having the LARGEADDRESSAWARE flag in a 32 bit environment. No matter the flag is specified or not, in a 32 bit process, the pointers will be capable of 
&gt;&gt; handling 2^32 addresses right?
LARGEADDRESSAWARE enables an application to use 3GB memory which is within limits of 2^32 (4GB).

&gt;&gt; Are you saying that even if I start the OS with /3GB switch, my application cannot use the memory after 2GB unless this flag is specified?
The flag tells the OS to increase user mode address space by 1 GB and make it 3GB and make kernel mode 1 GB, but this can cause issues with applications which hasn&#039;t &#039;requested&#039; for a larger address space. Hence the designers chose to allow only those applications to see the extra 1GB space which has requested for the extra space. So how to request for this space: via LARGEADDRESSAWARE flag which in turn adds IMAGE_FILE_LARGE_ADDRESS_AWARE to the image header. 

So what happens to the applications which hasn&#039;t requested the extra 1GB space? They continue to use 2GB, the 1GB remains invisible to the app, which means the memory is wasted. Why is it wasted? Neither kernel nor the user mode app is using it.

LARGEADDRESSAWARE and /3GB work in tandem. Its good for server machines which run SQL server or other heavy apps. Sometimes good with Visual Studio which loads a huge number of projects.
Thank you,
Nibu</description>
		<content:encoded><![CDATA[<p>Hi Naveen,</p>
<p>>> One doubt, what was the purpose of having the LARGEADDRESSAWARE flag in a 32 bit environment. No matter the flag is specified or not, in a 32 bit process, the pointers will be capable of<br />
>> handling 2^32 addresses right?<br />
LARGEADDRESSAWARE enables an application to use 3GB memory which is within limits of 2^32 (4GB).</p>
<p>>> Are you saying that even if I start the OS with /3GB switch, my application cannot use the memory after 2GB unless this flag is specified?<br />
The flag tells the OS to increase user mode address space by 1 GB and make it 3GB and make kernel mode 1 GB, but this can cause issues with applications which hasn&#8217;t &#8216;requested&#8217; for a larger address space. Hence the designers chose to allow only those applications to see the extra 1GB space which has requested for the extra space. So how to request for this space: via LARGEADDRESSAWARE flag which in turn adds IMAGE_FILE_LARGE_ADDRESS_AWARE to the image header. </p>
<p>So what happens to the applications which hasn&#8217;t requested the extra 1GB space? They continue to use 2GB, the 1GB remains invisible to the app, which means the memory is wasted. Why is it wasted? Neither kernel nor the user mode app is using it.</p>
<p>LARGEADDRESSAWARE and /3GB work in tandem. Its good for server machines which run SQL server or other heavy apps. Sometimes good with Visual Studio which loads a huge number of projects.<br />
Thank you,<br />
Nibu</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to enable LARGEADDRESSAWARE? by Naveen</title>
		<link>http://ntcoder.com/bab/2012/02/22/how-to-enable-largeaddressaware/#comment-3005</link>
		<dc:creator>Naveen</dc:creator>
		<pubDate>Fri, 24 Feb 2012 03:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://ntcoder.com/bab/?p=2388#comment-3005</guid>
		<description>Hi Nibu,

One doubt, what was the purpose of having the LARGEADDRESSAWARE flag in a 32 bit environment. No matter the flag is specified or not, in a 32 bit process, the pointers will be capable of handling 2^32 addresses right? But of course the upper 2B is reserved for kernel. Are you saying that even if I start the OS with /3GB switch, my application cannot use the memory after 2GB unless this flag is specified?</description>
		<content:encoded><![CDATA[<p>Hi Nibu,</p>
<p>One doubt, what was the purpose of having the LARGEADDRESSAWARE flag in a 32 bit environment. No matter the flag is specified or not, in a 32 bit process, the pointers will be capable of handling 2^32 addresses right? But of course the upper 2B is reserved for kernel. Are you saying that even if I start the OS with /3GB switch, my application cannot use the memory after 2GB unless this flag is specified?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on systeminfo command by Sarath</title>
		<link>http://ntcoder.com/bab/2012/02/09/systeminfo-command/#comment-2929</link>
		<dc:creator>Sarath</dc:creator>
		<pubDate>Fri, 17 Feb 2012 07:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://ntcoder.com/bab/?p=2385#comment-2929</guid>
		<description>quite handy!</description>
		<content:encoded><![CDATA[<p>quite handy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on typedef a fixed length array by foo fighter</title>
		<link>http://ntcoder.com/bab/2008/07/07/typedef-a-fixed-length-array/#comment-2867</link>
		<dc:creator>foo fighter</dc:creator>
		<pubDate>Thu, 09 Feb 2012 16:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://nibuthomas.wordpress.com/2008/07/07/typedef-a-fixed-length-array/#comment-2867</guid>
		<description>thanks for your examples</description>
		<content:encoded><![CDATA[<p>thanks for your examples</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to generate random numbers in a batch file? by Josh</title>
		<link>http://ntcoder.com/bab/2008/11/22/how-to-generate-random-numbers-in-a-batch-file/#comment-2423</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 22 Dec 2011 05:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://nibuthomas.wordpress.com/?p=1434#comment-2423</guid>
		<description>For anyone who still needs it, here is the best way to &quot;control&quot; your random numbers..

set rand=%random:~-n%

where &#039;n&#039; is the amount of digits you want your random number to be. eg:

set rand=%random:~-2%

will randomly generate a 2 digit number.
Hope this helps :D</description>
		<content:encoded><![CDATA[<p>For anyone who still needs it, here is the best way to &#8220;control&#8221; your random numbers..</p>
<p>set rand=%random:~-n%</p>
<p>where &#8216;n&#8217; is the amount of digits you want your random number to be. eg:</p>
<p>set rand=%random:~-2%</p>
<p>will randomly generate a 2 digit number.<br />
Hope this helps <img src='http://ntcoder.com/bab/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Capturing text from under your mouse cursor! by Miguel Alvarez</title>
		<link>http://ntcoder.com/bab/2008/08/15/capturing-text-from-under-your-mouse-cursor/#comment-2049</link>
		<dc:creator>Miguel Alvarez</dc:creator>
		<pubDate>Wed, 16 Nov 2011 22:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://nibuthomas.wordpress.com/?p=975#comment-2049</guid>
		<description>I am developing a free screen reader for blind. You code wil help. Can you sent to me please</description>
		<content:encoded><![CDATA[<p>I am developing a free screen reader for blind. You code wil help. Can you sent to me please</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to generate random numbers in a batch file? by Lux</title>
		<link>http://ntcoder.com/bab/2008/11/22/how-to-generate-random-numbers-in-a-batch-file/#comment-1902</link>
		<dc:creator>Lux</dc:creator>
		<pubDate>Fri, 04 Nov 2011 12:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://nibuthomas.wordpress.com/?p=1434#comment-1902</guid>
		<description>Thanks guys, this helped me a lot</description>
		<content:encoded><![CDATA[<p>Thanks guys, this helped me a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MFC Feature Pack Tutorial &#8211; Part 2 &#8211; CMFCPropertySheet by amit patil</title>
		<link>http://ntcoder.com/bab/2008/06/14/mfc-feature-pack-tutorial-part-2-cmfcpropertysheet/#comment-1889</link>
		<dc:creator>amit patil</dc:creator>
		<pubDate>Thu, 03 Nov 2011 07:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://nibuthomas.wordpress.com/?p=311#comment-1889</guid>
		<description>When CMFCPropertySheet::PropSheetLook_List  option is used , scroll bars are not displayed 

----------------------------------------------------------------------------------------------------------------------

According to MSDN :

For PropSheetLook_List 

The framework displays scroll arrows if there are more list items than will fit in the visible area of the list.

Unfortunately, scroll bars are not displayed when there are many items presents outside visible area.</description>
		<content:encoded><![CDATA[<p>When CMFCPropertySheet::PropSheetLook_List  option is used , scroll bars are not displayed </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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>According to MSDN :</p>
<p>For PropSheetLook_List </p>
<p>The framework displays scroll arrows if there are more list items than will fit in the visible area of the list.</p>
<p>Unfortunately, scroll bars are not displayed when there are many items presents outside visible area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MFC Feature Pack Tutorial &#8211; Part 2 &#8211; CMFCPropertySheet by amit patil</title>
		<link>http://ntcoder.com/bab/mfc-feature-pack-tutorial-part-2-cmfcpropertysheet/#comment-1888</link>
		<dc:creator>amit patil</dc:creator>
		<pubDate>Thu, 03 Nov 2011 07:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://nibuthomas.wordpress.com/?page_id=336#comment-1888</guid>
		<description>When CMFCPropertySheet::PropSheetLook_List  option is used , scroll bars are not displayed 

----------------------------------------------------------------------------------------------------------------------

According to MSDN :

For PropSheetLook_List 

The framework displays scroll arrows if there are more list items than will fit in the visible area of the list.

Unfortunately, scroll bars are not displayed when there are many items presents outside visible area.</description>
		<content:encoded><![CDATA[<p>When CMFCPropertySheet::PropSheetLook_List  option is used , scroll bars are not displayed </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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>According to MSDN :</p>
<p>For PropSheetLook_List </p>
<p>The framework displays scroll arrows if there are more list items than will fit in the visible area of the list.</p>
<p>Unfortunately, scroll bars are not displayed when there are many items presents outside visible area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to generate random numbers in a batch file? by Bill Gates’ cabana boy</title>
		<link>http://ntcoder.com/bab/2008/11/22/how-to-generate-random-numbers-in-a-batch-file/#comment-1623</link>
		<dc:creator>Bill Gates’ cabana boy</dc:creator>
		<pubDate>Wed, 28 Sep 2011 00:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://nibuthomas.wordpress.com/?p=1434#comment-1623</guid>
		<description>You need to use delayed expansion.

&lt;code&gt;setlocal enabledelayedexpansion
for %%i in (*) do (
echo !random!
)&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>You need to use delayed expansion.</p>
<p><code>setlocal enabledelayedexpansion<br />
for %%i in (*) do (<br />
echo !random!<br />
)</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

