<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Visual C++ Tips</title>
	<atom:link href="http://weseetips.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.wordpress.com</link>
	<description>Gold mine of C++ and VC++ tips and tricks!</description>
	<lastBuildDate>Sun, 31 Jan 2010 18:20:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='weseetips.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Visual C++ Tips</title>
		<link>http://weseetips.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://weseetips.wordpress.com/osd.xml" title="Visual C++ Tips" />
	<atom:link rel='hub' href='http://weseetips.wordpress.com/?pushpress=hub'/>
		<item>
		<title>WeSeeTips moving to new Home!</title>
		<link>http://weseetips.wordpress.com/2010/01/31/weseetips-moving-to-new-home/</link>
		<comments>http://weseetips.wordpress.com/2010/01/31/weseetips-moving-to-new-home/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 18:20:02 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1252</guid>
		<description><![CDATA[Dears, Its been a very long time, I know. But rejoice! WeSeeTips is moving to its new home. Due to several personal and technical reasons, the migration was a bit delayed. Anyway, We will be back soon in new style and new tips to rock you. Keep your fingers crossed! For WeSeeTips, Jijo. Filed under: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1252&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dears,</p>
<p>Its been a very long time, I know. But rejoice! WeSeeTips is moving to its new home. Due to several personal and technical reasons, the migration was a bit delayed. Anyway, We will be back soon in new style and new tips to rock you. Keep your fingers crossed!</p>
<p><a href="http://weseetips.files.wordpress.com/2010/01/packing.jpg"><img class="alignnone size-full wp-image-1253" title="Packing" src="http://weseetips.files.wordpress.com/2010/01/packing.jpg?w=448&#038;h=295" alt="" width="448" height="295" /></a></p>
<p>For WeSeeTips,<br />
Jijo.</p>
<br />Filed under: <a href='http://weseetips.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1252/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1252&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2010/01/31/weseetips-moving-to-new-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2010/01/packing.jpg" medium="image">
			<media:title type="html">Packing</media:title>
		</media:content>
	</item>
		<item>
		<title>How to generate XML Schema from XML file?</title>
		<link>http://weseetips.wordpress.com/2009/11/22/how-to-generate-xml-schema-from-xml-file/</link>
		<comments>http://weseetips.wordpress.com/2009/11/22/how-to-generate-xml-schema-from-xml-file/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 16:55:44 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[XML schema from XML file]]></category>
		<category><![CDATA[generate XML Schema from XSD file]]></category>
		<category><![CDATA[xsd from xml]]></category>
		<category><![CDATA[xsd schema]]></category>
		<category><![CDATA[xml schema]]></category>
		<category><![CDATA[generate xml schema]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1242</guid>
		<description><![CDATA[Ever wondered how to generate XML schema from XML file? Indeed, a lot of 3ed party tools can do it for you. But as usual, any easy way? You can use Visual Studio IDE itself to generate XSD from XML file. Follow the steps. 1) Open the XML file in Visual Studio IDE. 2) Take [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1242&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
Ever wondered how to generate XML schema from XML file?<br />
Indeed, a lot of 3ed party tools can do it for you. But as usual, any easy way?</p>
<p><a href="http://weseetips.files.wordpress.com/2009/11/xsdfromxml.jpg"><img class="alignnone size-full wp-image-1244" title="XsdFromXml" src="http://weseetips.files.wordpress.com/2009/11/xsdfromxml.jpg?w=500&#038;h=346" alt="" width="500" height="346" /></a></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
You can use Visual Studio IDE itself to generate XSD from XML file. Follow the steps.</p>
<p>1) Open the XML file in Visual Studio IDE.<br />
2) Take View &gt; Other Windows &gt; Command Window.<br />
3) Now type and execute command &#8211; <strong>XML.CreateSchema<br />
</strong>4) See, the schema is generated.</p>
<p><a href="http://weseetips.files.wordpress.com/2009/11/xsdfromxml1.jpg"><img class="alignnone size-full wp-image-1245" title="XsdFromXml1" src="http://weseetips.files.wordpress.com/2009/11/xsdfromxml1.jpg?w=510&#038;h=382" alt="" width="510" height="382" /></a></p>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
A hidden pearl in VS IDE. Isn&#8217;t it?</p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215&#038;h=32" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
<br />Posted in Visual Studio  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1242&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/11/22/how-to-generate-xml-schema-from-xml-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/11/xsdfromxml.jpg" medium="image">
			<media:title type="html">XsdFromXml</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/11/xsdfromxml1.jpg" medium="image">
			<media:title type="html">XsdFromXml1</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" medium="image">
			<media:title type="html">beginnerseries</media:title>
		</media:content>
	</item>
		<item>
		<title>Search for Symbols in Visual Studio more Easily</title>
		<link>http://weseetips.wordpress.com/2009/11/15/search-for-symbols-in-visual-studio-more-easily/</link>
		<comments>http://weseetips.wordpress.com/2009/11/15/search-for-symbols-in-visual-studio-more-easily/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 16:24:33 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[advanced find]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[VC++ search]]></category>
		<category><![CDATA[visual C++ Seach]]></category>
		<category><![CDATA[Visual Studio find]]></category>
		<category><![CDATA[visual Studio seach]]></category>
		<category><![CDATA[visual studio seach tip]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1221</guid>
		<description><![CDATA[Ever tried VisualAssist? Yes man, Its a killer product. The feature that I like most is its Symbol Search. You can specify words and it will list symbols that contain those words. Its very useful if you have a vague idea about the function name that you&#8217;re searching for. Have a look at the following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1221&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
Ever tried <strong>VisualAssist</strong>? Yes man, Its a killer product. The feature that I like most is its Symbol Search. You can specify words and it will list symbols that contain those words. Its very useful if you have a vague idea about the function name that you&#8217;re searching for. Have a look at the following screenshot.</p>
<p><img class="alignnone size-full wp-image-1226" title="Search3" src="http://weseetips.files.wordpress.com/2009/11/search3.jpg?w=394&#038;h=209" alt="Search3" width="394" height="209" /><img class="alignnone size-full wp-image-1217" title="FindInVisualStudio" src="http://weseetips.files.wordpress.com/2009/10/findinvisualstudio.gif?w=75&#038;h=56" alt="FindInVisualStudio" width="75" height="56" /></p>
<p>But is there any PoorMan&#8217;s SearchSymbols without VisualAssist?</p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
Did you forget about the hidden gem in VisualStudio find window? Yes, the <strong>Regular Expressions</strong>. You can use .* to do the same search done by VisualAssist. For instance, to do the above search, search for <strong>Show.*Msg</strong>. Have a look at following screenshots.</p>
<p><img class="alignnone size-full wp-image-1230" title="Search4" src="http://weseetips.files.wordpress.com/2009/11/search4.jpg?w=350&#038;h=440" alt="Search4" width="350" height="440" /></p>
<p>Now look at the results. Cool! isn&#8217;t it?</p>
<p><img class="alignnone size-full wp-image-1231" title="Search5" src="http://weseetips.files.wordpress.com/2009/11/search5.jpg?w=510&#038;h=137" alt="Search5" width="510" height="137" /></p>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Quite easy. nah? BTW, did you try to kill that bug. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215&#038;h=32" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
<br />Posted in Visual Studio  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1221&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/11/15/search-for-symbols-in-visual-studio-more-easily/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/11/search3.jpg" medium="image">
			<media:title type="html">Search3</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/10/findinvisualstudio.gif" medium="image">
			<media:title type="html">FindInVisualStudio</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/11/search4.jpg" medium="image">
			<media:title type="html">Search4</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/11/search5.jpg" medium="image">
			<media:title type="html">Search5</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" medium="image">
			<media:title type="html">beginnerseries</media:title>
		</media:content>
	</item>
		<item>
		<title>C++ Function Pointers Simplified!</title>
		<link>http://weseetips.wordpress.com/2009/10/18/c-function-pointers-simplified/</link>
		<comments>http://weseetips.wordpress.com/2009/10/18/c-function-pointers-simplified/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 17:53:35 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[C++ function pointers]]></category>
		<category><![CDATA[easy function pointers]]></category>
		<category><![CDATA[function pointer syntax]]></category>
		<category><![CDATA[Function Pointers]]></category>
		<category><![CDATA[how to create function pointer]]></category>
		<category><![CDATA[simple function pointers]]></category>
		<category><![CDATA[typedef function pointer]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[Visual C++]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1209</guid>
		<description><![CDATA[Background information Pointer is a variable which holds the address of another variable. Where, function pointer is again a variable which holds the address of a function. If you think pointers are evil, then function pointers must be Satan for you. Well, is there any easy way to create function pointers from function prototype? Indeed, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1209&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /></p>
<p><span style="color:#808080;"><em><span style="text-decoration:underline;"><strong>Background information</strong></span><br />
Pointer is a variable which holds the address of another variable. Where, function pointer is again a variable which holds the address of a function. </em></span></p>
<p>If you think pointers are evil, then function pointers must be Satan for you. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Well, is there any easy way to create function pointers from function prototype? Indeed, there is. Its the &#8220;BAT&#8221; technique. Never heard about it before? No problem. Its invented by me just now<strong>.</strong><strong> </strong>After watching <span style="text-decoration:underline;"><strong>BatMan</strong></span> series from cartoon network.</p>
<p><img class="alignnone size-full wp-image-1210" title="FunctionPointers" src="http://weseetips.files.wordpress.com/2009/10/functionpointers.jpg?w=492&#038;h=330" alt="FunctionPointers" width="492" height="330" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
The &#8220;BAT&#8221; technique is this -</p>
<ol>
<li>Put <strong><span style="color:#0000ff;"><span style="text-decoration:underline;">B</span></span>racket</strong><strong> </strong>or parenthesis around the function name.</li>
<li>Add <strong><span style="color:#0000ff;"><span style="text-decoration:underline;">A</span></span>sterisk </strong>or star in-front of function name.</li>
<li>Now <strong><span style="text-decoration:underline;"><span style="color:#0000ff;">T</span></span>ypedef </strong>it to create a new datatype. Means change the function name to new datatype name and add typedef infront of it.</li>
<li>Now you can use the new function pointer datatype like ordinary variables.</li>
</ol>
<p>For instance, Assume we want to make a function pointer for function &#8211; <strong>DWORD MyFunction( int a, int b)</strong>.</p>
<p><span style="text-decoration:underline;"><strong>1) Bracket</strong></span><br />
<strong> </strong>DWORD <span style="color:#ff0000;"><strong>(</strong></span>MyFunction<span style="color:#ff0000;"><strong>)</strong></span>( int a, int b);</p>
<p><span style="text-decoration:underline;"><strong>2) Asterisk</strong></span><br />
DWORD (<span style="color:#ff0000;"><strong>*</strong></span>MyFunction)( int a, int b);</p>
<p><span style="text-decoration:underline;"><strong>3) Typedef </strong></span><br />
<span style="color:#ff0000;"><strong>typedef</strong></span> DWORD (*MyFunction<span style="color:#ff0000;"><strong>Ptr</strong></span>)( int a, int b);</p>
<p>Ah! you have created a function pointer &#8211; MyFunctionPtr for function type &#8211; &#8216;DWORD MyFunction( int a, int b)&#8217;<br />
Now you can use it like any other variable in your code. For instance, just see the following code snippet with real world usage of function pointers.</p>
<pre>// Callback function for progress notification.
bool NotifyProgress( int Percentage )
{
 // Display progress and return true to continue.
 return true;
}

// typedef function pointer.
typedef bool (*NotifyProgressPtr)( int Percentage );

// DVD Burning function with pointer to NotifyProgress
// to update progress.
void BurnDVD( NotifyProgressPtr FnPtr )
{
 for( int Progress = 0; Progress &lt;= 100; ++Progress )
 {
 // Call the function.
 (*FnPtr)(Progress);
 }
}

// Main function.
int _tmain(int argc, _TCHAR* argv[])
{
 // Ummm... Burn one DVD.
 BurnDVD( NotifyProgress );
 return 0;
}</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Function pointers are not that much evil. Isn&#8217;t it? <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215&#038;h=32" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
<br />Posted in C++  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1209&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/10/18/c-function-pointers-simplified/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/10/functionpointers.jpg" medium="image">
			<media:title type="html">FunctionPointers</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" medium="image">
			<media:title type="html">beginnerseries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Set Dialog as TopMost Window?</title>
		<link>http://weseetips.wordpress.com/2009/10/11/how-to-set-dialog-to-topmost-window/</link>
		<comments>http://weseetips.wordpress.com/2009/10/11/how-to-set-dialog-to-topmost-window/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 15:01:25 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Windows APIs]]></category>
		<category><![CDATA[Always on top]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[HWND_TOPMOST]]></category>
		<category><![CDATA[set topmost window]]></category>
		<category><![CDATA[SetWindowPos()]]></category>
		<category><![CDATA[topmost window]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[window at top]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1190</guid>
		<description><![CDATA[I always wondered about popularity of Winamp. It has rich custom drawn UI, which made it stand out of the crowd. Did you noticed its &#8220;Always on top&#8221; feature and wondered about how its implemented? Its time to reveal the secret &#8211; How winamp implemented that feature &#8211; Staying at the top? You can use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1190&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
I always wondered about <span style="color:#0000ff;">popularity of Winamp</span>. It has <span style="color:#0000ff;">rich custom drawn UI</span>, which made it stand out of the crowd. Did you noticed its<span style="color:#0000ff;"> &#8220;Always on top&#8221; feature </span>and wondered about how its implemented? Its time to reveal the secret &#8211; How winamp implemented that feature &#8211; <span style="color:#0000ff;"><strong>Staying at the top</strong>?</span></p>
<p><img class="alignnone size-full wp-image-1191" title="SetTopMostWindow" src="http://weseetips.files.wordpress.com/2009/10/settopmostwindow.jpg?w=300&#038;h=325" alt="SetTopMostWindow" width="300" height="325" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
You can use &#8211; <strong>SetWindowPos()</strong> with <strong>HWND_TOPMOST</strong> flag. Have a look at the code snippet.</p>
<pre>void CRabbitDlg::OnSetTopmost()
{
    // Set window position to topmost window.
    ::SetWindowPos( GetSafeHwnd(),
                    HWND_TOPMOST,
                    0, 0, 0, 0,
                    SWP_NOMOVE | SWP_NOREDRAW | SWP_NOSIZE );
}</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Single line of code. But wowing feature. isn&#8217;t it?</p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215&#038;h=32" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
<br />Posted in Visual C++, Windows APIs  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1190&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/10/11/how-to-set-dialog-to-topmost-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/10/settopmostwindow.jpg" medium="image">
			<media:title type="html">SetTopMostWindow</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" medium="image">
			<media:title type="html">beginnerseries</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft MVP for Visual C++ for 2009-2010</title>
		<link>http://weseetips.wordpress.com/2009/10/05/microsoft-mvp-for-visual-c-for-2009-2010/</link>
		<comments>http://weseetips.wordpress.com/2009/10/05/microsoft-mvp-for-visual-c-for-2009-2010/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 17:56:55 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[jijo microsoft mvp]]></category>
		<category><![CDATA[jijo mvp]]></category>
		<category><![CDATA[jijo raj]]></category>
		<category><![CDATA[jijo.raj microsoft mvp]]></category>
		<category><![CDATA[jijo.raj mvp]]></category>
		<category><![CDATA[microsoft mvp]]></category>
		<category><![CDATA[microsoft mvp jijo raj]]></category>
		<category><![CDATA[mvp jijo]]></category>
		<category><![CDATA[mvp jijo raj]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1178</guid>
		<description><![CDATA[Dear All, With great pleasure, I would like to inform you that &#8211; with god&#8217;s grace, I&#8217;ve been awarded as Microsoft MVP (Most Valuable Professional) for Visual C++. At this moment I would like to thank all my readers for supporting me and making this happen! Please go through my MVP profile. I really thank [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1178&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dear All,</p>
<p>With great pleasure, I would like to inform you that &#8211; with god&#8217;s grace, I&#8217;ve been awarded as <strong>Microsoft MVP</strong> (Most Valuable Professional) for <strong>Visual C++</strong>. At this moment I would like to thank all my readers for supporting me and making this happen! Please go through my <a href="https://mvp.support.microsoft.com/profile/Jijo.Raj" target="_blank">MVP profile</a>.</p>
<p><img class="alignnone size-full wp-image-1179" title="MicrosoftMvp" src="http://weseetips.files.wordpress.com/2009/10/microsoftmvp.jpg?w=500&#038;h=302" alt="MicrosoftMvp" width="500" height="302" /></p>
<p>I really thank Microsoft for this wonderful MVP award and I really love their products. I really feel great about being a part of it. Well, I owe all this achievements to my fellow readers who motivated me to post more and more and atlast ended in being an MVP. So hearty thanks to you all, once again!</p>
<p>Best Regards,<br />
Jijo. [Humble VC++ enthusiasit from Next Door]</p>
<br />Posted in Announcements  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1178&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/10/05/microsoft-mvp-for-visual-c-for-2009-2010/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/10/microsoftmvp.jpg" medium="image">
			<media:title type="html">MicrosoftMvp</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Watch this Pointer &#8211; The Wizards Way!</title>
		<link>http://weseetips.wordpress.com/2009/07/30/how-to-watch-this-pointer-the-wizards-way/</link>
		<comments>http://weseetips.wordpress.com/2009/07/30/how-to-watch-this-pointer-the-wizards-way/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 15:39:15 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[VC++ Debugging Tips]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[ECX]]></category>
		<category><![CDATA[this]]></category>
		<category><![CDATA[this pointer]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[watch window]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1171</guid>
		<description><![CDATA[How to watch the this pointer? Just add &#8216;this&#8217; to watch window. Everyone does like that. Isn&#8217;t it? But how Visual C++ wizards watch &#8216;this&#8217; pointer? The secret is, visual C++ compiler passes this pointer via ECX register. So add (ClassName*)(@ECX) to watch window will give you this pointer. Have a look at the screenshot. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1171&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
How to watch the this pointer? Just add <span style="color:#0000ff;">&#8216;this&#8217;</span> to watch window. Everyone does like that. Isn&#8217;t it? But how <span style="color:#0000ff;">Visual C++ wizards</span> watch <span style="color:#0000ff;">&#8216;this&#8217;</span> pointer? <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-1172" title="thiswizardway" src="http://weseetips.files.wordpress.com/2009/07/thiswizardway.jpg?w=442&#038;h=350" alt="thiswizardway" width="442" height="350" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
The secret is, visual C++ compiler passes <span style="color:#0000ff;"><em><strong>this </strong></em></span>pointer via <span style="color:#0000ff;"><em>ECX</em> </span>register. So add <span style="color:#0000ff;"><strong>(ClassName*)(@ECX)</strong></span> to watch window will give you this pointer. Have a look at the screenshot.</p>
<p><img class="alignnone size-full wp-image-1173" title="thiswizardway2" src="http://weseetips.files.wordpress.com/2009/07/thiswizardway2.jpg?w=510&#038;h=382" alt="thiswizardway2" width="510" height="382" /></p>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Interesting, the internals of Visual C++. Isn&#8217;t it?</p>
<p><img class="alignnone size-medium wp-image-53" title="intermediateseries" src="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248&#038;h=32" alt="" width="248" height="32" /><br />
Targeted Audiance &#8211; Intermediate.</p>
<br />Posted in VC++ Debugging Tips, Visual C++, Visual Studio  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1171&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/07/30/how-to-watch-this-pointer-the-wizards-way/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/07/thiswizardway.jpg" medium="image">
			<media:title type="html">thiswizardway</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/07/thiswizardway2.jpg" medium="image">
			<media:title type="html">thiswizardway2</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248" medium="image">
			<media:title type="html">intermediateseries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get the CPU Name String?</title>
		<link>http://weseetips.wordpress.com/2009/06/21/how-to-get-the-cpu-name-string/</link>
		<comments>http://weseetips.wordpress.com/2009/06/21/how-to-get-the-cpu-name-string/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 18:29:49 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[C++ cpu name]]></category>
		<category><![CDATA[c++ get cpu name]]></category>
		<category><![CDATA[C++ get processor name]]></category>
		<category><![CDATA[CPU brand string]]></category>
		<category><![CDATA[cpu name]]></category>
		<category><![CDATA[Cpu name string]]></category>
		<category><![CDATA[get Cpu name]]></category>
		<category><![CDATA[get processor name]]></category>
		<category><![CDATA[intrin.h]]></category>
		<category><![CDATA[processor name]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[VC++ cpu name]]></category>
		<category><![CDATA[VC++ get cpu name]]></category>
		<category><![CDATA[VC++ get processor name]]></category>
		<category><![CDATA[__cpuid]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1163</guid>
		<description><![CDATA[While taking the System properties, you have noticed the processor name string. For instance, in my laptop it is &#8211; &#8220;Intel(R) Core(TM)2 Duo CPU     T5250  @ 1.50GHz&#8220;. Ever though about how to get this processor name string? Image Courtesy &#8211; Wallpaper Mania. You can use the function &#8211; __cpuid(), which generates the instruction &#8211; cpuid. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1163&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
While taking the System properties, you have noticed the processor name string. For instance, in my laptop it is &#8211; &#8220;<span style="color:#0000ff;">Intel(R) Core(TM)2 Duo CPU     T5250  @ 1.50GHz</span>&#8220;. Ever though about <span style="color:#0000ff;">how to get this processor name string</span>?</p>
<p><img class="alignnone size-full wp-image-1166" title="cpuid" src="http://weseetips.files.wordpress.com/2009/06/cpuid.jpg?w=400&#038;h=300" alt="cpuid" width="400" height="300" /><br />
Image Courtesy &#8211; <a href="http://piczzmania.blogspot.com/">Wallpaper Mania</a>.</p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
You can use the function &#8211; <span style="color:#0000ff;"><strong>__cpuid()</strong></span>, which generates the instruction &#8211; cpuid. Have a look at the code snippet. Code taken and modified from MSDN.</p>
<pre>#include &lt;iostream&gt;
#include &lt;intrin.h&gt;

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
    // Get extended ids.
    int CPUInfo[4] = {-1};
    __cpuid(CPUInfo, 0x80000000);
    unsigned int nExIds = CPUInfo[0];

    // Get the information associated with each extended ID.
    char CPUBrandString[0x40] = { 0 };
    for( unsigned int i=0x80000000; i&lt;=nExIds; ++i)
    {
        __cpuid(CPUInfo, i);

        // Interpret CPU brand string and cache information.
        if  (i == 0x80000002)
        {
            memcpy( CPUBrandString,
            CPUInfo,
            sizeof(CPUInfo));
        }
        else if( i == 0x80000003 )
        {
            memcpy( CPUBrandString + 16,
            CPUInfo,
            sizeof(CPUInfo));
        }
        else if( i == 0x80000004 )
        {
            memcpy(CPUBrandString + 32, CPUInfo, sizeof(CPUInfo));
        }
}

    cout &lt;&lt; "Cpu String: " &lt;&lt; CPUBrandString;
}</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
You can get a lot of information about cpu by using __cpuid. Have a look at the <a href="http://msdn.microsoft.com/en-us/library/hskdteyh(VS.80).aspx">MSDN Documentation</a>.</p>
<p><img class="alignnone size-medium wp-image-53" title="intermediateseries" src="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248&#038;h=32" alt="" width="248" height="32" /><br />
Targeted Audiance &#8211; Intermeidate.</p>
<br />Posted in Uncategorized, Visual C++  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1163&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/06/21/how-to-get-the-cpu-name-string/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/06/cpuid.jpg" medium="image">
			<media:title type="html">cpuid</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248" medium="image">
			<media:title type="html">intermediateseries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Change the Display Orientation?</title>
		<link>http://weseetips.wordpress.com/2009/05/10/how-to-change-the-display-orientation/</link>
		<comments>http://weseetips.wordpress.com/2009/05/10/how-to-change-the-display-orientation/#comments</comments>
		<pubDate>Sun, 10 May 2009 16:42:24 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[change display orientation]]></category>
		<category><![CDATA[change screen orientation]]></category>
		<category><![CDATA[ChangeDisplaySettings()]]></category>
		<category><![CDATA[DEVMODE]]></category>
		<category><![CDATA[DEVMODE.dmDisplayOrientation]]></category>
		<category><![CDATA[dmDisplayOrientation]]></category>
		<category><![CDATA[EnumDisplaySettings()]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[Visual C++]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1154</guid>
		<description><![CDATA[Are you using Windows XP? Press Ctrl+Atl+DownArrow, and then Ctrl+Atl+UpArrow. The screen changes its orientation upside down. isn&#8217;t it? But how to turn the screen, upside down programmatically? Image Courtesy &#8211; marieforleo.com Get the current DEVMODE by calling -EnumDisplaySettings(). Then change orientation by setting DEVMODE.dmDisplayOrientation and calling ChangeDisplaySettings(). Have a look at the code snippet. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1154&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
Are you using Windows XP? Press <span style="color:#0000ff;">Ctrl+Atl+DownArrow</span>, and then <span style="color:#0000ff;">Ctrl+Atl+UpArrow</span>. The screen changes its orientation upside down. isn&#8217;t it? But how to <span style="text-decoration:underline;"><strong>turn </strong><strong>the screen, upside down</strong></span> programmatically?</p>
<p><img class="alignnone size-full wp-image-1155" title="ChangeDisplayOrientation" src="http://weseetips.files.wordpress.com/2009/05/changedisplayorientation.jpg?w=510&#038;h=340" alt="ChangeDisplayOrientation" width="510" height="340" /><br />
Image Courtesy &#8211; <a href="http://marieforleo.com" target="_blank">marieforleo.com</a></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
Get the<span style="color:#0000ff;"> current DEVMODE</span> by calling -<span style="color:#0000ff;">EnumDisplaySettings()</span>. Then change orientation by setting <span style="color:#0000ff;">DEVMODE.dmDisplayOrientation</span> and calling <span style="color:#0000ff;">ChangeDisplaySettings()</span>. Have a look at the code snippet. Code taken from MSDN.</p>
<pre>// Get current Device Mode.
DEVMODE DeviceMode = { 0 };
EnumDisplaySettings( NULL,
 ENUM_CURRENT_SETTINGS,
 &amp;DeviceMode );

// Change display mode upside down.
DeviceMode.dmDisplayOrientation = DMDO_180;
ChangeDisplaySettings( &amp;DeviceMode, 0 );

// Sleep for 10 seconds.
Sleep( 10000 );

// Change display mode back.
DeviceMode.dmDisplayOrientation = DMDO_DEFAULT;
ChangeDisplaySettings( &amp;DeviceMode, 0 );</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Be careful to restore the display orientation back. Or else <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-53" title="intermediateseries" src="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248&#038;h=32" alt="" width="248" height="32" /><br />
Targeted Audiance &#8211; Intermeidate.</p>
<br />Posted in Uncategorized  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1154&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/05/10/how-to-change-the-display-orientation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/05/changedisplayorientation.jpg" medium="image">
			<media:title type="html">ChangeDisplayOrientation</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248" medium="image">
			<media:title type="html">intermediateseries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Parse Virtual Table?</title>
		<link>http://weseetips.wordpress.com/2009/05/07/how-to-parse-virtual-table/</link>
		<comments>http://weseetips.wordpress.com/2009/05/07/how-to-parse-virtual-table/#comments</comments>
		<pubDate>Thu, 07 May 2009 16:47:06 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C++ virtual functions]]></category>
		<category><![CDATA[C++ virtual table]]></category>
		<category><![CDATA[parse virtual table]]></category>
		<category><![CDATA[virtual function]]></category>
		<category><![CDATA[virtual table]]></category>
		<category><![CDATA[virtual table parsing]]></category>
		<category><![CDATA[virtual table under the hood]]></category>
		<category><![CDATA[vtable]]></category>
		<category><![CDATA[vtable under the hood]]></category>
		<category><![CDATA[vtbl]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1146</guid>
		<description><![CDATA[Virtual Table is one of the most fascinating stuff for C++ programmer. Well, did you ever  peek into virtual table, which is the real engine of virtual functions? The first 4 bytes of an objects points to another pointer which points to virtual table. Casting it to DWORD*, we can parse all virtual functions. Once [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1146&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Virtual Table is one of the most fascinating stuff for C++ programmer. Well, did you ever  peek into virtual table, which is the <span style="color:#0000ff;"><strong>real engine </strong></span>of virtual functions?</p>
<p><img class="alignnone size-full wp-image-1147" title="virtualfunction" src="http://weseetips.files.wordpress.com/2009/05/virtualfunction.jpg?w=510&#038;h=351" alt="virtualfunction" width="510" height="351" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
The <span style="color:#0000ff;">first 4 bytes of an objects points to another pointer which points to virtual table.</span> Casting it to DWORD*, we can parse all virtual functions. Once you get function address, you can get the function name by calling &#8211; <span style="color:#0000ff;">SymFromAddr()</span>. Have a look at code snippet.</p>
<p><img class="alignnone size-full wp-image-1148" title="virtualfunction2" src="http://weseetips.files.wordpress.com/2009/05/virtualfunction2.jpg?w=493&#038;h=290" alt="virtualfunction2" width="493" height="290" /></p>
<pre>#include &lt;ImageHlp.h&gt;
...
// Get list of virtual functions.
void CRabbitDlg::ParseVtable()
{
    // Initialize symbols.
    InitializeSymbols();

    // We are going to parse vtable of CWinApp object.
    DWORD* pBase = (DWORD*)(AfxGetApp());
    DWORD* pVptr = (DWORD*)*pBase;

    // Iterate through VirtualTable.
    DWORD Index = 0;
    DWORD FnAddr = pVptr[Index];
    while( FnAddr )
    {
        // Translate FunctionAddress to FunctionName.
        CString FunctionName;
        GetSymbolNameFromAddr( FnAddr, FunctionName );

        // Format and add to list.
        CString Final;
        Final.Format( _T("%0x - %s"), FnAddr, FunctionName.operator LPCTSTR());
        m_List.AddString( Final );

        // Next function pointer.
        FnAddr = pVptr[++Index];
    }
}

// Initialize Symbol engine.
void CRabbitDlg::InitializeSymbols()
{
    DWORD Options = SymGetOptions();
    Options |= SYMOPT_DEBUG;
    Options |= SYMOPT_UNDNAME; 

    ::SymSetOptions( Options ); 

    // Initialize symbols.
    ::SymInitialize ( GetCurrentProcess(),
                      NULL,
                      TRUE );
}

// Get symbol name from address.
void CRabbitDlg::GetSymbolNameFromAddr( DWORD SymbolAddress, CString&amp; csSymbolName )
{
    DWORD64 Displacement = 0;
    SYMBOL_INFO_PACKAGE SymbolInfo = {0};
    SymbolInfo.si.SizeOfStruct  = sizeof( SYMBOL_INFO );
    SymbolInfo.si.MaxNameLen = sizeof(SymbolInfo.name);

    // Get symbol from address.
    ::SymFromAddr( GetCurrentProcess(),
                   SymbolAddress,
                   &amp;Displacement,
                   &amp;SymbolInfo.si );

    csSymbolName = SymbolInfo.si.Name;
}</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Don&#8217;t forget to include <span style="color:#0000ff;">ImageHlp.lib </span>to project settings.</p>
<p><img class="alignnone size-medium wp-image-53" title="intermediateseries" src="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248&#038;h=32" alt="" width="248" height="32" /><br />
Targeted Audiance &#8211; Intermediate.</p>
<br />Posted in Uncategorized  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/1146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=1146&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/05/07/how-to-parse-virtual-table/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/05/virtualfunction.jpg" medium="image">
			<media:title type="html">virtualfunction</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/05/virtualfunction2.jpg" medium="image">
			<media:title type="html">virtualfunction2</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248" medium="image">
			<media:title type="html">intermediateseries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Delete Duplicate entries from STL containers?</title>
		<link>http://weseetips.wordpress.com/2009/04/16/how-to-delete-duplicate-entries-from-stl-containers/</link>
		<comments>http://weseetips.wordpress.com/2009/04/16/how-to-delete-duplicate-entries-from-stl-containers/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 17:43:36 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[C++ unique]]></category>
		<category><![CDATA[delete duplicate entries]]></category>
		<category><![CDATA[remove duplicate entries]]></category>
		<category><![CDATA[set]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[std::set]]></category>
		<category><![CDATA[std::sort]]></category>
		<category><![CDATA[std::unique]]></category>
		<category><![CDATA[unique]]></category>
		<category><![CDATA[Visual C++]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=996</guid>
		<description><![CDATA[If you want to remove duplicate items, you can go for stl::set. But what to do if you want to delete duplicate data from other containers? Picture Courtesy &#8211; Squidoo You can use std::unique() algorithm to remove adjacent duplicate items. So at first, sort your data, then call std::unique(). Now all the duplicate data will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=996&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
If you want to remove duplicate items, you can go for <a title="stl::set" href="http://weseetips.com/2008/05/08/seek-uniqueness-use-stl-set/">stl::set</a>. But <span style="color:#0000ff;">what to do if you want to delete duplicate data from other containers?</span></p>
<p><span style="color:#0000ff;"><img class="alignnone size-full wp-image-997" title="removeduplicate" src="http://weseetips.files.wordpress.com/2009/04/removeduplicate.jpg?w=510&#038;h=309" alt="removeduplicate" width="510" height="309" /><br />
<span style="color:#000000;">Picture Courtesy &#8211; <a href="http://www.squidoo.com/demotivator">Squidoo</a></span><br />
</span></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
You can use <span style="color:#0000ff;">std::unique() </span>algorithm <span style="color:#0000ff;">to remove <span style="text-decoration:underline;"><strong>adjacent duplicate items</strong></span></span>. So at first, <span style="color:#0000ff;">sort your data, then call std::unique()</span>. Now <span style="color:#0000ff;">all the duplicate data will be rearranged to end of container</span>. Now <span style="color:#0000ff;">delete the unwanted range of duplicate data.</span> Have a look at code snippet below.</p>
<pre>#include &lt;vector&gt;
#include &lt;string&gt;
#include &lt;algorithm&gt;

using namespace std;

int main(int argc, char* argv[])
{
    // Election list.
    vector&lt;string&gt; ElectionList;
    ElectionList.push_back( "Sam" );
    ElectionList.push_back( "John" );
    ElectionList.push_back( "Ron" );
    ElectionList.push_back( "Sam" );
    ElectionList.push_back( "John" );

    // Sort the list to make same items be together.
    sort( ElectionList.begin(), ElectionList.end());

    // Rearrange unique items to front.
    vector&lt;string&gt;::iterator Itr = unique(
        ElectionList.begin(),
        ElectionList.end());

    // Delete the duplicate range.
    ElectionList.erase( Itr, ElectionList.end());
}</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Take care that <span style="color:#0000ff;">std::unique() just removes the adjacent duplicate entries</span>. It wont remove the entire duplicate entries present in the container.<span style="color:#0000ff;"> That&#8217;s why we need to sort the container at first</span>, which will arrange all duplicate entries to adjacent  locations. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215&#038;h=32" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
<br />Posted in C++, Codeproject  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/996/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/996/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/996/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/996/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/996/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/996/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/996/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/996/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/996/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/996/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/996/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/996/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/996/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/996/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=996&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/04/16/how-to-delete-duplicate-entries-from-stl-containers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/04/removeduplicate.jpg" medium="image">
			<media:title type="html">removeduplicate</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" medium="image">
			<media:title type="html">beginnerseries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Change the Icon of MFC application?</title>
		<link>http://weseetips.wordpress.com/2009/04/05/how-to-change-the-icon-of-mfc-application/</link>
		<comments>http://weseetips.wordpress.com/2009/04/05/how-to-change-the-icon-of-mfc-application/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 17:53:12 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[C++ icon]]></category>
		<category><![CDATA[change application icon]]></category>
		<category><![CDATA[change exe icon]]></category>
		<category><![CDATA[change icon]]></category>
		<category><![CDATA[set application icon]]></category>
		<category><![CDATA[set icon]]></category>
		<category><![CDATA[set mfc icon]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[VC++ set icon]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=982</guid>
		<description><![CDATA[When you create an MFC application, did you notice the icon of executable? Yes! its that same old icon. But I&#8217;ve seen other application with different icon. Well, how to set the icon of executable to give a new face for it? Image Courtesy &#8211; Flickr The secret is, windows will choose the first icon [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=982&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
When you create an MFC application, did you notice the icon of executable? Yes! its that same old icon. But I&#8217;ve seen other application with different icon. Well, <span style="color:#0000ff;">how to set the icon of executable to give a <strong><span style="text-decoration:underline;">new face</span></strong> for it?</span> <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-986" title="setappicon" src="http://weseetips.files.wordpress.com/2009/04/setappicon.jpg?w=450&#038;h=259" alt="setappicon" width="450" height="259" /><br />
Image Courtesy &#8211; <a href="http://farm1.static.flickr.com/102/283474196_9bb98ca5cb_o.jpg">Flickr</a></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
The secret is, <span style="color:#0000ff;">windows will choose the first icon present in executable as exe icon.</span> By default for an MFC application, IDR_MAINFRAME will be the icon resource name and it have the lowest resource value &#8211; 128. Follow the steps to add an icon and make set it the first one in executable.</p>
<p>1. Import a new icon by using resource editor.</p>
<p><img class="alignnone size-full wp-image-983" title="setappicon1" src="http://weseetips.files.wordpress.com/2009/04/setappicon1.jpg?w=361&#038;h=286" alt="setappicon1" width="361" height="286" /></p>
<p>2. Let the icon be IDR_ICON1.<br />
3. Now open resource.h and you can see, IDR_MAINFRAME which is the mfc icon, have lowest resource id.</p>
<p><img class="alignnone size-full wp-image-984" title="setappicon2" src="http://weseetips.files.wordpress.com/2009/04/setappicon2.jpg?w=449&#038;h=137" alt="setappicon2" width="449" height="137" /><br />
4. Now edit the resource.h to make IDI_ICON1 as lowest resource id.</p>
<p><img class="alignnone size-full wp-image-985" title="setappicon3" src="http://weseetips.files.wordpress.com/2009/04/setappicon3.jpg?w=449&#038;h=141" alt="setappicon3" width="449" height="141" /><br />
5. Now clean and build your application and check the application icon. Wow! its changed!!!</p>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
The point is, the <span style="color:#0000ff;">icon should be the first icon in executable</span>. You can set icon value even to zero. It will work!</p>
<p><img class="alignnone size-medium wp-image-53" title="intermediateseries" src="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248&#038;h=32" alt="" width="248" height="32" /><br />
Targeted Audiance &#8211; Intermediate.</p>
<br />Posted in Visual C++  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/982/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/982/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/982/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/982/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/982/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/982/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/982/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/982/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/982/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/982/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/982/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/982/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/982/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/982/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=982&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/04/05/how-to-change-the-icon-of-mfc-application/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/04/setappicon.jpg" medium="image">
			<media:title type="html">setappicon</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/04/setappicon1.jpg" medium="image">
			<media:title type="html">setappicon1</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/04/setappicon2.jpg" medium="image">
			<media:title type="html">setappicon2</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/04/setappicon3.jpg" medium="image">
			<media:title type="html">setappicon3</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248" medium="image">
			<media:title type="html">intermediateseries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to measure Performance by using High Resolution Timer in Visual C++?</title>
		<link>http://weseetips.wordpress.com/2009/03/31/how-to-measure-performance-by-using-high-resolution-timer-in-visual-c/</link>
		<comments>http://weseetips.wordpress.com/2009/03/31/how-to-measure-performance-by-using-high-resolution-timer-in-visual-c/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 17:13:04 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Windows APIs]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[high resolution stop watch]]></category>
		<category><![CDATA[high resolution timer]]></category>
		<category><![CDATA[measure perfomance]]></category>
		<category><![CDATA[QueryPerformanceCounter]]></category>
		<category><![CDATA[QueryPerformanceFrequency]]></category>
		<category><![CDATA[stop watch]]></category>
		<category><![CDATA[timer]]></category>
		<category><![CDATA[VC++]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=969</guid>
		<description><![CDATA[Ever had a performance tweaking project? The first thing you need is a high resolution stop watch to measure performance of different code blocks. But is there a high resolution stop watch? You can use QueryPerformanceCounter(). You can get the performance counter frequency &#8211; i.e. ticks per second by calling QueryPerformanceFrequency(). Have a look at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=969&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
Ever had a performance tweaking project? The first thing you need is a <span style="color:#0000ff;">high resolution stop watch to measure performance of different code blocks.</span> But is there a high resolution stop watch?</p>
<p><img class="alignnone size-full wp-image-970" title="highperformancetimer" src="http://weseetips.files.wordpress.com/2009/03/highperformancetimer.jpg?w=509&#038;h=304" alt="highperformancetimer" width="509" height="304" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
You can use <span style="color:#0000ff;"><strong>QueryPerformanceCounter()</strong></span>. You can get the performance counter frequency &#8211; i.e. ticks per second by calling <strong><span style="color:#0000ff;">QueryPerformanceFrequency()</span></strong>. Have a look at the sample CStopWatch class.</p>
<pre>// Stop watch class.
class CStopWatch
{
public:
    // Constructor.
    CStopWatch()
    {
        // Ticks per second.
        QueryPerformanceFrequency( &amp;liPerfFreq );
    }

    // Start counter.
    void Start()
    {
        liStart.QuadPart = 0;
        QueryPerformanceCounter( &amp;liStart );
    }

    // Stop counter.
    void Stop()
    {
        liEnd.QuadPart = 0;
        QueryPerformanceCounter( &amp;liEnd );
    }

    // Get duration.
    long double GetDuration()
    {
        return ( liEnd.QuadPart - liStart.QuadPart) /
                long double( liPerfFreq.QuadPart );
    }

private:
    LARGE_INTEGER liStart;
    LARGE_INTEGER liEnd;
    LARGE_INTEGER liPerfFreq;
};

int main()
{
    // Stop watch object.
    CStopWatch timer;

    // Start timer.
    timer.Start();

    // ZZzzzzz... for few seconds.
    Sleep( 3000 );
    timer.Stop();

    // Get the duration. Duration is in seconds.
    long double duration = timer.GetDuration();

    return 0;
}</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Even if the sample app slept for 3 seconds, in high resolution timer, the duration is 2.9xxx seconds. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Can you guess why?</p>
<p><img class="alignnone size-medium wp-image-53" title="intermediateseries" src="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248&#038;h=32" alt="" width="248" height="32" /><br />
Targeted Audiance &#8211; Intermediate.</p>
<br />Posted in Codeproject, Visual C++, Windows APIs  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/969/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/969/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/969/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/969/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/969/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/969/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/969/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/969/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/969/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/969/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/969/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/969/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/969/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/969/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=969&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/03/31/how-to-measure-performance-by-using-high-resolution-timer-in-visual-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/03/highperformancetimer.jpg" medium="image">
			<media:title type="html">highperformancetimer</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/intermediateseries.jpg?w=248" medium="image">
			<media:title type="html">intermediateseries</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Set Console Text Color?</title>
		<link>http://weseetips.wordpress.com/2009/03/29/how-to-set-console-text-color/</link>
		<comments>http://weseetips.wordpress.com/2009/03/29/how-to-set-console-text-color/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 18:09:16 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Windows APIs]]></category>
		<category><![CDATA[change console background color]]></category>
		<category><![CDATA[change console text color]]></category>
		<category><![CDATA[set console text color]]></category>
		<category><![CDATA[set text color]]></category>
		<category><![CDATA[SetConsoleTextAttribute()]]></category>
		<category><![CDATA[SetConsoleTextColor]]></category>
		<category><![CDATA[SetTextColor]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=963</guid>
		<description><![CDATA[Getting bored with the black and white console? Did you ever wish to change the text or background color of console? Image Courtesy &#8211; reginadowntown. Yes! You can use the api &#8211; SetConsoleTextAttribute(). See the code snippet below. // Set text color as Yellow with white background. SetConsoleTextAttribute( GetStdHandle( STD_OUTPUT_HANDLE ), FOREGROUND_INTENSITY &#124; // Set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=963&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166&#038;h=32" alt="" width="166" height="32" /><br />
Getting bored with the black and white console? Did you ever wish to <span style="color:#0000ff;">change the text or background color of console?</span></p>
<p><img class="alignnone size-full wp-image-964" title="setconsoletextcolor" src="http://weseetips.files.wordpress.com/2009/03/setconsoletextcolor.jpg?w=510&#038;h=499" alt="setconsoletextcolor" width="510" height="499" /><br />
Image Courtesy &#8211; <a href="http://www.reginadowntown.ca/events.php">reginadowntown</a>.</p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220&#038;h=32" alt="" width="220" height="32" /><br />
Yes! You can use the api &#8211; <span style="color:#0000ff;"><strong>SetConsoleTextAttribute()</strong></span>. See the code snippet below.</p>
<pre>// Set text color as Yellow with white background.
SetConsoleTextAttribute(
    GetStdHandle( STD_OUTPUT_HANDLE ),
    FOREGROUND_INTENSITY              | // Set Text color
    FOREGROUND_RED | FOREGROUND_GREEN | // Text color as Yellow.
    BACKGROUND_INTENSITY              | // Set Background color
    BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE ); // White Bg.</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94&#038;h=32" alt="" width="94" height="32" /><br />
Please note that you can mix red/green/blue constants to make new colors. Have fun. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215&#038;h=32" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
<br />Posted in Codeproject, Visual C++, Windows APIs  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/963/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/963/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/963/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/963/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/963/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/963/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/963/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/963/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/963/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/963/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/963/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/963/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/963/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/963/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=963&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/03/29/how-to-set-console-text-color/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" medium="image">
			<media:title type="html">Icon Description</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/03/setconsoletextcolor.jpg" medium="image">
			<media:title type="html">setconsoletextcolor</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" medium="image">
			<media:title type="html">Icon How Can I Do It?</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" medium="image">
			<media:title type="html">Icon Note</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" medium="image">
			<media:title type="html">beginnerseries</media:title>
		</media:content>
	</item>
		<item>
		<title>Happy Birthday! WeSeeTips!!!</title>
		<link>http://weseetips.wordpress.com/2009/03/25/happy-birthday-weseetips/</link>
		<comments>http://weseetips.wordpress.com/2009/03/25/happy-birthday-weseetips/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 17:11:08 +0000</pubDate>
		<dc:creator>Jijo.Raj</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[first birthday]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=953</guid>
		<description><![CDATA[Image Courtesy &#8211; Corbis Dear Visual C++ Enthusiasist, Today is the first birthday of WeSeeTips. When i start this blog, my dream target was 1000 hits and at least 10-20 visitors per day. But at present, weseetips have 1,20,000 hits and more than 500~600 daily visits! Thanks a lot for making weseetips a grand success! [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=953&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-956" title="birthday2" src="http://weseetips.files.wordpress.com/2009/03/birthday2.jpg?w=480&#038;h=480" alt="birthday2" width="480" height="480" /><br />
Image Courtesy &#8211; <a href="http://corbis.com">Corbis</a></p>
<p>Dear Visual C++ Enthusiasist,</p>
<p>Today is the first birthday of WeSeeTips. When i start this blog, my dream target was 1000 hits and at least 10-20 visitors per day. But at present, weseetips have <strong>1,20,000 hits </strong>and more than <strong>500~600 daily visits! </strong>Thanks a lot for making weseetips a grand success! All the credit goes to my fellow readers &#8211; that means you! Without you, this couldn&#8217;t be achieved. My sincere thanks to you all for reading weseetips and for keep watching! Lets grow together!</p>
<p>I would like to have a feedback from your side. About positives and negatives, points to improve, etc.. Kindly spend few seconds to drop some words! Please Help me to help you!</p>
<p>Very soon WeSeeTips will have a cosmetic change over! Well, whats it? Shhhhh! that&#8217;s a secret. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Keep watching buddy, that day is not so far. Once again thanking you all,</p>
<p>For WeSeeTips,<br />
Jijo.</p>
<br />Posted in Announcements  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/weseetips.wordpress.com/953/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/weseetips.wordpress.com/953/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/weseetips.wordpress.com/953/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/weseetips.wordpress.com/953/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/weseetips.wordpress.com/953/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/weseetips.wordpress.com/953/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/weseetips.wordpress.com/953/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/weseetips.wordpress.com/953/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/weseetips.wordpress.com/953/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/weseetips.wordpress.com/953/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/weseetips.wordpress.com/953/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/weseetips.wordpress.com/953/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/weseetips.wordpress.com/953/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/weseetips.wordpress.com/953/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=weseetips.wordpress.com&amp;blog=2681721&amp;post=953&amp;subd=weseetips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://weseetips.wordpress.com/2009/03/25/happy-birthday-weseetips/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/25f1254c5049377eba563e225c217d17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Jijo.Raj</media:title>
		</media:content>

		<media:content url="http://weseetips.files.wordpress.com/2009/03/birthday2.jpg" medium="image">
			<media:title type="html">birthday2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
