<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual C++ Tips</title>
	<atom:link href="http://weseetips.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to check whether the thread is alive or dead?</title>
		<link>http://weseetips.com/2010/03/04/how-to-check-whether-the-thread-is-alive-or-dead/</link>
		<comments>http://weseetips.com/2010/03/04/how-to-check-whether-the-thread-is-alive-or-dead/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:39:18 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[check thread active]]></category>
		<category><![CDATA[GetExitCodeThread()]]></category>
		<category><![CDATA[STILL_ACTIVE]]></category>
		<category><![CDATA[thread active]]></category>
		<category><![CDATA[thread alive]]></category>
		<category><![CDATA[thread dead]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1368</guid>
		<description><![CDATA[In multi-threaded environments, sometimes we need to check whether a given thread is alive or not. But how can we check it? Picture courtesy &#8211; Erica Marshall You can use the function &#8211; GetExitCodeThread(). If thread is alive, the function returns STILL_ACTIVE. Have a look at the code snippet. // Checks whether given thread is [...]]]></description>
			<content:encoded><![CDATA[<p>In multi-threaded environments, sometimes we need to check whether a given thread is alive or not. But how can we check it?</p>
<p><img class="alignnone size-full wp-image-1371" title="Thread-Alive" src="http://weseetips.com/wp-content/uploads/2010/03/Thread-Alive.jpg" alt="" width="500" height="333" /></p>
<p>Picture courtesy &#8211; <a href="http://www.flickr.com/photos/erica_marshall/2739537285/" target="_blank">Erica Marshall</a></p>
<p><img class="alignnone size-full wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.com/wp-content/uploads/2008/03/icon_howcanidoit.jpg" alt="" width="220" height="32" /><br />
You can use the function &#8211; <a href="http://msdn.microsoft.com/en-us/library/ms683190%28VS.85%29.aspx" target="_blank">GetExitCodeThread()</a>. If thread is alive, the function returns STILL_ACTIVE. Have a look at the code snippet.</p>
<pre>// Checks whether given thread is alive.
bool IsThreadAlive(const HANDLE hThread, bool&amp; bAlive )
{
 // Read thread's exit code.
 DWORD dwExitCode = 0;
 if( GetExitCodeThread(hThread, &amp;dwExitCode))
 {
 // if return code is STILL_ACTIVE,
 // then thread is live.
 bAlive = (dwExitCode == STILL_ACTIVE);
 return true;
 }

 // Check failed.
 return false;
}

void main()
{
 bool bAlive = false;
 if( IsThreadAlive( GetCurrentThread(), bAlive))
 {
 // IsThreadAlive is success.
 // Now check whether thread is alive.
 // It should, because its our main thread. <img src='http://weseetips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
 if( bAlive)
 {
 std::cout &lt;&lt; "Thread Alive!!!";
 }
 }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2010/03/04/how-to-check-whether-the-thread-is-alive-or-dead/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Tool Review: CppDepends &#8211; C\C++ Static Analysis Tool</title>
		<link>http://weseetips.com/2010/02/23/tool-review-cppdepends-cc-static-analysis-tool/</link>
		<comments>http://weseetips.com/2010/02/23/tool-review-cppdepends-cc-static-analysis-tool/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 19:04:00 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1364</guid>
		<description><![CDATA[I just want to introduce a new tool that I met recently. Its the CppDepends! its a wonderful tool which can do static code analysis and generate lot of metrics. It has got CQL( Code Query Language) by which you can write sql like queries to get code metrics. Have a look at the complete [...]]]></description>
			<content:encoded><![CDATA[<p>I just want to introduce a new tool that I met recently. Its the <a href="http://www.cppdepend.com">CppDepends</a>! its a wonderful tool which can do static code analysis and generate lot of metrics. It has got CQL( Code Query Language) by which you can write sql like queries to get code metrics.</p>
<p><img class="alignnone size-full wp-image-1365" title="CppDepends" src="http://weseetips.com/wp-content/uploads/2010/02/CppDepends.png" alt="" width="523" height="347" /></p>
<p>Have a look at the <a href="http://www.cppdepend.com/Features.aspx">complete feature list</a>. You can download the tool from <a href="http://www.cppdepend.com/CppDependDownload.aspx">here</a>. I think its worth a trial. Try it!</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2010/02/23/tool-review-cppdepends-cc-static-analysis-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Tokenize String? Different Tricks in Trade!</title>
		<link>http://weseetips.com/2010/02/11/how-to-tokenize-string-different-tricks-in-trade/</link>
		<comments>http://weseetips.com/2010/02/11/how-to-tokenize-string-different-tricks-in-trade/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 18:07:12 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[C++ string tokenize]]></category>
		<category><![CDATA[CStringT::Tokenize()]]></category>
		<category><![CDATA[istringstream]]></category>
		<category><![CDATA[split string]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[stringstream]]></category>
		<category><![CDATA[strtok()]]></category>
		<category><![CDATA[tokenize]]></category>
		<category><![CDATA[tokenize string]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1350</guid>
		<description><![CDATA[I still remember my first project which I did seven years back. In that I got a task to split a string which contains ids separated by slash. I wrote a big snippet of string parser code by using pointers. But now when i see the following tricks, i feel &#8211; how childish was my [...]]]></description>
			<content:encoded><![CDATA[<p>I still remember my first project which I did seven years back. In that I got a task to split a string which contains ids separated by slash. I wrote a big snippet of string parser code by using pointers. But now when i see the following tricks, i feel &#8211; how childish was my first code snippet.</p>
<p><img class="alignnone size-full wp-image-1355" title="StrTokenize" src="http://weseetips.com/wp-content/uploads/2010/02/StrTokenize.jpg" alt="" width="540" height="383" /></p>
<p><img class="alignnone size-full wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.com/wp-content/uploads/2008/03/icon_howcanidoit.jpg" alt="" width="220" height="32" /><br />
Some of the tricks are as follows.</p>
<p><span style="text-decoration: underline;"><strong>1) strtok()</strong></span></p>
<p>If you want plain api and no object oriented fanciness, then strtok is for you. Download the source from <a href="http://weseetips.com/wp-content/uploads/2010/02/StrTok.zip">here</a>.</p>
<pre>#include "string.h"
...

// String to be splitted.
char String[] = "Long.Live_Visual.C++";

// Seperators.
char Seperators[] = "._";

// Start Tokenizing.
char* Token = strtok(String, Seperators);

// Loop until end.
while(Token != NULL)
{
 cout &lt;&lt; Token &lt;&lt; endl;

 // Tokenize the remaning string.
 Token = strtok(0, Seperators);
};
</pre>
<p><span style="text-decoration: underline;"><strong>2) istringstream</strong></span><br />
C++ Streams are good option for string splitup. But it has only one drawback &#8211; one one delimiter can be specified. Download the source from <a href="http://weseetips.com/wp-content/uploads/2010/02/StringStream.zip">here</a>.</p>
<pre>#include "iostream"
#include "sstream"
#include "string"
...

string String = "Long.Live.Visual.C++";
char Seperator = '.';

// Create input string stream.
istringstream StrStream(String);
string Token;

while(getline(StrStream, Token, Seperator))
{
 cout &lt;&lt; Token &lt;&lt; endl;
}
</pre>
<p><span style="text-decoration: underline;"><strong>3) CString::Tokenize()</strong></span></p>
<p>Wanna MFC way? Then CString::Tokenize() is for you. Download the source from <a href="http://weseetips.com/wp-content/uploads/2010/02/CString.zip">here</a>.</p>
<pre>// String.
CString String = _T("long.live_Visual.C++");

// Token seperators.
CString Seperator = _T("._");
int Position = 0;
CString Token;

// Get first token.s
Token = String.Tokenize(Seperator, Position);

while(!Token.IsEmpty())
{
 wcout &lt;&lt; Token.GetBuffer() &lt;&lt; endl;
 Token.ReleaseBuffer();

 // Get next token.
 Token = String.Tokenize(Seperator, Position);
}
</pre>
<p><img class="alignnone size-full wp-image-18" title="Icon Note" src="http://weseetips.com/wp-content/uploads/2008/03/icon_note.jpg" alt="" width="94" height="32" /><br />
Do you know any other mind blowing tokenizing tricks? Then, share with us.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2010/02/11/how-to-tokenize-string-different-tricks-in-trade/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>C++ Union &#8211; Is it still Relevant?</title>
		<link>http://weseetips.com/2010/02/10/c-union-is-it-still-relevant/</link>
		<comments>http://weseetips.com/2010/02/10/c-union-is-it-still-relevant/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 18:37:03 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[C++ union]]></category>
		<category><![CDATA[union]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1332</guid>
		<description><![CDATA[Do you remember the old days, where memory was a premium? At that time, unions were used to save memory by merging multiple variables. Gone are the days where we had memory constraints. Now we have GB&#8217;s of RAM itself. So are unions just overhead to language now? Or is it still useful? The merging [...]]]></description>
			<content:encoded><![CDATA[<p>Do you remember the old days, where memory was a premium? At that time, unions were used to save memory by merging multiple variables. Gone are the days where we had memory constraints. Now we have GB&#8217;s of RAM itself. So are unions just overhead to language now? Or is it still useful?</p>
<p><img class="alignnone size-full wp-image-1338" title="CppUnion1" src="http://weseetips.com/wp-content/uploads/2010/02/CppUnion1.png" alt="" width="500" height="261" /></p>
<p><a href="http://weseetips.com/wp-content/uploads/2008/03/icon_howcanidoit.jpg"><img class="alignnone size-full wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.com/wp-content/uploads/2008/03/icon_howcanidoit.jpg" alt="" width="220" height="32" /></a><br />
The merging property of unions can be used for parsing values. For instance have a look at the MessageParser below. If you want to deal with byte streams with specific message format, then unions will be really helpful.</p>
<pre>#pragma pack(1)

// Message layout.
struct MessageLayout
{
 char Signature[3];
 WORD HeaderLen;
 WORD Param1;
 BYTE Param2;
};

// Union to parse header from byte streams.
union MessageHeaderParser
{
 // Byte stream.
 BYTE Bytes[8];
 MessageLayout Layout;
};

int _tmain(int argc, _TCHAR* argv[])
{
 // DWORD Parser.
 BYTE Bytes[] = { 'M','Z', 0, // Header Signature.
                  10,0,       // Header Length
                  20,0,       // WORD param
                  30 };       // BYTE Param.

 MessageHeaderParser Parser;
 memcpy(&amp;Parser.Bytes, Bytes, 8);

 // Get the HIWORD by using standard windows macro.
 cout &lt;&lt; "Signature  :" &lt;&lt; Parser.Layout.Signature &lt;&lt; endl;
 cout &lt;&lt; "Msg Length :" &lt;&lt; Parser.Layout.HeaderLen &lt;&lt; endl;
 cout &lt;&lt; "WORD param :" &lt;&lt; Parser.Layout.Param1 &lt;&lt; endl;
 cout &lt;&lt; "BYTE param :" &lt;&lt; (int)Parser.Layout.Param2 &lt;&lt; endl;

 _getch();
 return 0;
}</pre>
<p><a href="http://weseetips.com/wp-content/uploads/2008/03/icon_note.jpg"><img class="alignnone size-full wp-image-18" title="Icon Note" src="http://weseetips.com/wp-content/uploads/2008/03/icon_note.jpg" alt="" width="94" height="32" /></a></p>
<p>Download the code from <a href="http://weseetips.com/wp-content/uploads/2010/02/Union.zip">here</a>.</p>
<p>BTW, Do you know that the famous Audi brand is a <strong>union </strong>of 4 old legendary car companies? The four rings represents each of the four companies. Interesting, the history is. isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2010/02/10/c-union-is-it-still-relevant/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to set Focus to Different Control on Dialog Startup?</title>
		<link>http://weseetips.com/2010/02/08/how-to-set-focus-to-different-control-on-dialog-startup/</link>
		<comments>http://weseetips.com/2010/02/08/how-to-set-focus-to-different-control-on-dialog-startup/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 17:50:49 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[MFC]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[CWnd::SetFocus()]]></category>
		<category><![CDATA[set control focus]]></category>
		<category><![CDATA[set focus]]></category>
		<category><![CDATA[SetFocus OnInitDialog]]></category>
		<category><![CDATA[VC++]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1323</guid>
		<description><![CDATA[Do you want to set the focus to another control on displaying Dialog? Or tried SetFocus() to another control in OnInitDialog() and want to know why its not working? The answer for your &#8216;Focus&#8217; question is here. If you are setting the default focus to another control in dialog, then OnInitDialog() should return FALSE. Have [...]]]></description>
			<content:encoded><![CDATA[<p>Do you want to set the focus to another control on displaying Dialog? Or tried SetFocus() to another control in OnInitDialog() and want to know why its not working? The answer for your &#8216;Focus&#8217; question is here.</p>
<p><img class="alignnone size-full wp-image-1325" title="SetFocus" src="http://weseetips.com/wp-content/uploads/2010/02/SetFocus.jpg" alt="" width="400" height="267" /></p>
<p><img class="alignnone size-full wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.com/wp-content/uploads/2008/03/icon_howcanidoit.jpg" alt="" width="220" height="32" /></p>
<p>If you are setting the default focus to another control in dialog, then OnInitDialog() should return FALSE. Have a look at the code snippet below.</p>
<pre>BOOL CStartupFocusDlg::OnInitDialog()
{
 ...
 // Set focus to your control.
 CWnd* pWnd = GetDlgItem(IDC_EDIT2);
 pWnd-&gt;SetFocus();

 // return TRUE;  // Wizard Generated code.
 // Return FALSE if you set focus to different control
 return FALSE;
}
</pre>
<p><img class="alignnone size-full wp-image-18" title="Icon Note" src="http://weseetips.com/wp-content/uploads/2008/03/icon_note.jpg" alt="" width="94" height="32" /><br />
Download the <a href="http://weseetips.com/wp-content/uploads/2010/02/StartupFocus.zip" target="_blank">Sample</a>, if you want to see it in action. Please note that sample is compiled in Visual C++ 2008.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2010/02/08/how-to-set-focus-to-different-control-on-dialog-startup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Get Project Build Time?</title>
		<link>http://weseetips.com/2010/02/07/how-to-get-project-build-time/</link>
		<comments>http://weseetips.com/2010/02/07/how-to-get-project-build-time/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 18:26:15 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[compile time]]></category>
		<category><![CDATA[display build time]]></category>
		<category><![CDATA[display compile time]]></category>
		<category><![CDATA[get build time]]></category>
		<category><![CDATA[get project build time]]></category>
		<category><![CDATA[project build time]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[VC++ compile time]]></category>
		<category><![CDATA[vc++ project build time]]></category>
		<category><![CDATA[Visual C++]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1312</guid>
		<description><![CDATA[Many times i lost my temper by waiting for the re-build to be finished. So i just attempted to tune and reduce the build time by removing unnecessary includes. At that time I just wondered how to get the build time? Just follow the steps to enable the &#8216;Build Time&#8217;. 1) Take &#8211; Tools &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Many times i lost my temper by waiting for the re-build to be finished. So i just attempted to tune and reduce the build time by removing unnecessary includes. At that time I just wondered how to get the build time?</p>
<p><a href="http://weseetips.com/wp-content/uploads/2010/01/BuildTime.jpg"><img class="alignnone size-full wp-image-5" title="BuildTime" src="http://weseetips.com/wp-content/uploads/2010/01/BuildTime.jpg" alt="" width="483" height="321" /></a></p>
<p><a href="http://weseetips.com/wp-content/uploads/2008/03/icon_howcanidoit.jpg"><img class="alignnone size-full wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.com/wp-content/uploads/2008/03/icon_howcanidoit.jpg" alt="" width="220" height="32" /></a><br />
Just follow the steps to enable the &#8216;Build Time&#8217;.</p>
<p>1) Take &#8211; <em>Tools &gt; Options</em>.<br />
2) Now take <em>- Project and Solutions &gt; VC++ Project Settings</em>.<br />
3) Now enable the &#8216;Build Timing&#8217; option and rebuild your project.</p>
<p><a href="http://weseetips.com/wp-content/uploads/2010/02/BuildTime_options1.jpg"><img class="alignnone size-full wp-image-1319" title="BuildTime_options" src="http://weseetips.com/wp-content/uploads/2010/02/BuildTime_options1.jpg" alt="" width="568" height="330" /></a></p>
<p><a href="http://weseetips.com/wp-content/uploads/2008/03/icon_note.jpg"><img class="alignnone size-full wp-image-18" title="Icon Note" src="http://weseetips.com/wp-content/uploads/2008/03/icon_note.jpg" alt="" width="94" height="32" /></a><br />
This article seems useful &#8211; <a href="http://stackoverflow.com/questions/364240/how-do-you-reduce-compile-time-and-linking-time-for-visual-c-projects-native" target="_blank">How do you reduce compile time, and linking time for Visual C++ projects?</a>. Have a look at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2010/02/07/how-to-get-project-build-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WeSeeTips Reloaded!!!</title>
		<link>http://weseetips.com/2010/02/07/weseetips-reloaded/</link>
		<comments>http://weseetips.com/2010/02/07/weseetips-reloaded/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 15:57:25 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1302</guid>
		<description><![CDATA[Dears Visual C++ Enthusiasts , At last the migration is successfully completed. It was a bit painful though. Encountered a lot of issues, but lucky was able to solve it without much trouble. Now WeSeeTips is back in new style. Enjoy! You have already noticed that for last few months there were hardly any update. [...]]]></description>
			<content:encoded><![CDATA[<p>Dears Visual C++ Enthusiasts ,</p>
<p>At last the migration is successfully completed. It was a bit painful though. Encountered a lot of issues, but lucky was able to solve it without much trouble. Now WeSeeTips is back in new style. Enjoy!</p>
<p><a href="http://weseetips.com/wp-content/uploads/2010/02/StyleChanged.jpg"><img class="alignnone size-full wp-image-1303" title="StyleChanged" src="http://weseetips.com/wp-content/uploads/2010/02/StyleChanged.jpg" alt="" width="500" height="313" /></a></p>
<p>You have already noticed that for last few months there were hardly any update. My sincere apologies to my readers that I was damn busy due to several personal reasons. But I&#8217;ve a chest full of interesting tips to show you. Now enjoy the show!</p>
<p>BTW, what do you think about the new theme? Do you like it? Please don&#8217;t hesitate to write a few lines in comment section. Thanks for your time!</p>
<p>For WeSeeTips,<br />
Jijo.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2010/02/07/weseetips-reloaded/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WeSeeTips moving to new Home!</title>
		<link>http://weseetips.com/2010/02/07/weseetips-moving-to-new-home/</link>
		<comments>http://weseetips.com/2010/02/07/weseetips-moving-to-new-home/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 14:53:06 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=1298</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.]]></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" alt="" width="448" height="295" /></a></p>
<p>For WeSeeTips,<br />
Jijo.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2010/02/07/weseetips-moving-to-new-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to generate XML Schema from XML file?</title>
		<link>http://weseetips.com/2009/11/22/how-to-generate-xml-schema-from-xml-file/</link>
		<comments>http://weseetips.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[generate xml schema]]></category>
		<category><![CDATA[generate XML Schema from XSD file]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[xml schema]]></category>
		<category><![CDATA[XML schema from XML file]]></category>
		<category><![CDATA[xsd from xml]]></category>
		<category><![CDATA[xsd 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 [...]]]></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" 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://siteground205.com/~weseetip/wp-content/uploads/2009/11/xsdfromxml.jpg"><img class="alignnone size-full wp-image-1244" title="XsdFromXml" src="http://siteground205.com/~weseetip/wp-content/uploads/2009/11/xsdfromxml.jpg" 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" 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://siteground205.com/~weseetip/wp-content/uploads/2009/11/xsdfromxml1.jpg"><img class="alignnone size-full wp-image-1245" title="XsdFromXml1" src="http://siteground205.com/~weseetip/wp-content/uploads/2009/11/xsdfromxml1.jpg" 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" 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" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2009/11/22/how-to-generate-xml-schema-from-xml-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Search for Symbols in Visual Studio more Easily</title>
		<link>http://weseetips.com/2009/11/15/search-for-symbols-in-visual-studio-more-easily/</link>
		<comments>http://weseetips.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 [...]]]></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" 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://siteground205.com/~weseetip/wp-content/uploads/2009/11/search3.jpg" alt="Search3" width="394" height="209" /><img class="alignnone size-full wp-image-1217" title="FindInVisualStudio" src="http://siteground205.com/~weseetip/wp-content/uploads/2009/10/findinvisualstudio.gif" 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" 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://siteground205.com/~weseetip/wp-content/uploads/2009/11/search4.jpg" 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://siteground205.com/~weseetip/wp-content/uploads/2009/11/search5.jpg" 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" alt="" width="94" height="32" /><br />
Quite easy. nah? BTW, did you try to kill that bug. <img src='http://weseetips.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" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2009/11/15/search-for-symbols-in-visual-studio-more-easily/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

