<?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>Marius Bancila's Blog &#187; VS2010</title>
	<atom:link href="http://mariusbancila.ro/blog/tag/vs2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://mariusbancila.ro/blog</link>
	<description>Sharing my opinions and ideas!</description>
	<lastBuildDate>Sun, 08 Aug 2010 09:36:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Resources for the F# Presentation at Ronua Roadshow</title>
		<link>http://mariusbancila.ro/blog/2010/07/18/resources-for-the-f-presentation-at-ronua-roadshow/</link>
		<comments>http://mariusbancila.ro/blog/2010/07/18/resources-for-the-f-presentation-at-ronua-roadshow/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 08:51:49 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[functional]]></category>
		<category><![CDATA[ronua]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=641</guid>
		<description><![CDATA[For those that attended my last evening presentation about F# at Ronua Roadshow in Timisoara (but not only), here is the demo I&#8217;ve shown, and one that I planned to show but didn&#8217;t due to lack of time. The purpose of these demos was to shown simple Windows Forms applications written in F#. Mandelbrot Fractal [...]]]></description>
			<content:encoded><![CDATA[<p>For those that attended my last evening presentation about F# at Ronua Roadshow in Timisoara (but not only), here is the demo I&#8217;ve shown, and one that I planned to show but didn&#8217;t due to lack of time. The purpose of these demos was to shown simple Windows Forms applications written in F#.</p>
<p><strong>Mandelbrot Fractal</strong><br />
A Mandelbrot set is a set of points in the complex plane, whose boundary forms a fractal. The fractal, known as Mandelbrot fractal, is obtain by associating a color with each point in the complex plane (or rather a subset of it). The color is chosen based on the result of computing the value of the complex quadratic polynomial Z(n+1) = Z(n)^2 + c for a number of iterations (100, 200, etc.). You can read more about it on <a href="http://en.wikipedia.org/wiki/Mandelbrot_set">Wikipedia</a>.</p>
<p>The program that I shown exhibits traits of both functional (for computing the fractal) and object oriented (for displaying the fractal) paradigms. It is a variation of the program available <a href="http://secretgeek.net/fsharp_mandelbrot2.asp">here</a>, for which I kept the functional part (computing the Mandelbrot set is not very fast, I must warn you), but redone the user interface part. You can use the mouse to drag the fractal and the wheel to zoom in and out.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/07/fsharp_mandelbrot.png" title="Mandelbrot fractal" class="alignnone" width="600" height="414" /></p>
<p>You can download it from <a href="http://www.mariusbancila.ro/blog/wp-content/uploads/2010/07/mandelbrot.zip">here</a>.</p>
<p><strong>Game of Life</strong><br />
I <a href="http://mariusbancila.ro/blog/2008/05/08/game-of-life-in-f/">blogged</a> about this two years ago, when F# was still far from a final release. In the meantime, syntax has changed, classes have changed, so if you try to run that implementation of mine you&#8217;ll run into some errors. I have updated the code to run correctly with Visual Studio 2010.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/07/fsharp_gameoflife.png" title="Game of Life" class="alignnone" width="641" height="483" /></p>
<p>You can download it from <a href="http://www.mariusbancila.ro/blog/wp-content/uploads/2010/07/mandelbrot.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2010/07/18/resources-for-the-f-presentation-at-ronua-roadshow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VSBuildStatusAddin with Auto Show and Auto Hide</title>
		<link>http://mariusbancila.ro/blog/2010/06/02/vsbuildstatusaddin-with-auto-show-and-auto-hide/</link>
		<comments>http://mariusbancila.ro/blog/2010/06/02/vsbuildstatusaddin-with-auto-show-and-auto-hide/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 14:29:24 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[addin]]></category>
		<category><![CDATA[VS2005]]></category>
		<category><![CDATA[VS2008]]></category>
		<category><![CDATA[VS2010]]></category>
		<category><![CDATA[VSBuildStatus]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=557</guid>
		<description><![CDATA[A new version (1.3) of VSBuildStatus add-in for Visual Studio 2005, 2008 and 2010 is available. It allows you to configure the add-in window to automatically show up when a build/clean/deploy process starts, and/or automatically close when the operation ends. To enable the automatic show of the add-in window when a build/clean/deploy operation starts, check [...]]]></description>
			<content:encoded><![CDATA[<p>A new version (1.3) of <a href="http://visualstudiogallery.msdn.microsoft.com/en-us/2A2293B4-1808-44AA-B030-661F6803D8A1">VSBuildStatus</a> add-in for Visual Studio 2005, 2008 and 2010 is available. It allows you to configure the add-in window to automatically show up when a build/clean/deploy process starts, and/or automatically close when the operation ends. </p>
<p><img alt="" src="/blog/wp-content/uploads/2010/06/VSBuildStatusAddin1.png" title="Addin window" class="alignnone" width="786" height="375" /></p>
<ul>
<li>To enable the automatic show of the add-in window when a build/clean/deploy operation starts, check <strong>Pop-out automatically when starting a build</strong></li>
<li>To enable the automatic hiding of the add-in window when the build/clean/deploy operation ends, check <strong>Auto hide when the build ends</strong>
<ul>
<li>you can set a delay interval for the hiding, varing from 0 to 300 seconds; if the delay is 0, the window is hidden immediatelly after the build ends</li>
<li>to keep the window shown when error(s) occurred during the build/clean/deploy operation, check <strong>DO NOT auto hide when an error occurs</strong></li>
</ul>
</li>
</ul>
<p>Here is a screen short of the properties window. It opens from the Settings button.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/06/VSBuildStatusAddin3.png" title="Properties window" class="alignnone" width="300" height="300" /></p>
<p>The add-in is available on the <a href="http://visualstudiogallery.msdn.microsoft.com/en-us/2A2293B4-1808-44AA-B030-661F6803D8A1">Visual Studio Gallery</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2010/06/02/vsbuildstatusaddin-with-auto-show-and-auto-hide/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010</title>
		<link>http://mariusbancila.ro/blog/2010/04/12/visual-studio-2010/</link>
		<comments>http://mariusbancila.ro/blog/2010/04/12/visual-studio-2010/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 19:23:00 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[Releases]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=526</guid>
		<description><![CDATA[Today Microsoft release officially Visual Studio 2010 and .NET Framework 4.0, with five major release events and many others across the globe. You can download it from MSDN. Those that don&#8217;t have an MSDN subscription can try the evaluation versions available here. Express editions are still available for free and can be downloaded from here. [...]]]></description>
			<content:encoded><![CDATA[<p>Today Microsoft release officially Visual Studio 2010 and .NET Framework 4.0, with five major release events and many others across the globe. You can download it from MSDN. Those that don&#8217;t have an MSDN subscription can try the evaluation versions available <a href="http://www.microsoft.com/visualstudio/en-us/download">here</a>. Express editions are still available for free and can be downloaded from <a href="http://www.microsoft.com/express/Windows/">here</a>.</p>
<p>During past months I have wrote various posts about the changes and new features for Visual C++. A summary of these articles are available <a href="http://mariusbancila.ro/blog/2010/04/02/visual-studio-2010-changes-for-vc-summary/">here</a>.</p>
<p>An important change in Visual Studio 2010 is that F#, now at version 2.0, is bundled in the IDE, just as the other languages, C++, C# and VB.NET. After 7 years in development it had become a first class language with today&#8217;s release.</p>
<p>More information about the release can be found here:<br />
<a href="http://blogs.msdn.com/somasegar/archive/2010/04/11/announcing-visual-studio-2010-and-net-framework-4.aspx">http://blogs.msdn.com/somasegar/archive/2010/04/11/announcing-visual-studio-2010-and-net-framework-4.aspx</a><br />
<a href="http://blogs.msdn.com/dsyme/archive/2010/04/12/f-2-0-released-as-part-of-visual-studio-2010.aspx">http://blogs.msdn.com/dsyme/archive/2010/04/12/f-2-0-released-as-part-of-visual-studio-2010.aspx</a><br />
<a href="http://blogs.msdn.com/jasonz/archive/2010/04/12/ship-it-visual-studio-2010-net-framework-4-now-available.aspx">http://blogs.msdn.com/jasonz/archive/2010/04/12/ship-it-visual-studio-2010-net-framework-4-now-available.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2010/04/12/visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 changes for VC++ (part 5)</title>
		<link>http://mariusbancila.ro/blog/2010/03/24/visual-studio-2010-changes-for-vc-part-5/</link>
		<comments>http://mariusbancila.ro/blog/2010/03/24/visual-studio-2010-changes-for-vc-part-5/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 21:10:48 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=501</guid>
		<description><![CDATA[I this post I will talk about the deployment changes in VC++ 2010. When you deploy an application to another machine you have to install not only the application but all the libraries that it depends on. When you build with VC++, you have dependencies on CRT (C/C++ runtime) and possible on MFC and/or ATL. [...]]]></description>
			<content:encoded><![CDATA[<p>I this post I will talk about the deployment changes in VC++ 2010. When you deploy an application to another machine you have to install not only the application but all the libraries that it depends on. When you build with VC++, you have dependencies on CRT (C/C++ runtime) and possible on MFC and/or ATL.</p>
<p>Visual Studio 2005 introduced a new deployment model for Windows client applications based on <em>isolated applications</em> and <em>side-by-side assemblies</em>. Assemblies can be either <strong>shared</strong> (globally registered in the system, installed in the Global Assembly Cache – GAC folder in Windows – and available to all applications) or <strong>side-by-side</strong> (described with a manifest, distributed with the application and available only to that application).</p>
<p>In Visual C++ 2005, library assemblies (such as MFC, ATL, CRT) have been rebuilt as <em>shared side-by-side</em> assemblies and installed in the native assembly cache, WinSxS folder in Windows. That means they are not globally registered in the system, but are globally available to the applications that specify a dependency with a manifest file.</p>
<p>With VC++ 2005 or 2008 there are several options for deployment:</p>
<ul>
<li><strong>static linking</strong>: when you link your application statically against VC++ libraries (CRT, MFC or ATL) the application doesn&#8217;t have any dependencies so you don&#8217;t have to deploy any other VC++ DLLs to the target machine</li>
<li><strong>shared side-by-side assemblies</strong>: the VC++ DLLs are deployed in the WinSxS folder; this can be done either with the Visual C++ Redistributable Merge Modules or the Visual C++ Redistributable Package; the application requires a manifest file that describes the dependent DLLs and their version</li>
<li><strong>private assemblies</strong>: the VC++ DLLs are all installed in the same folder with the application; the application requires a manifest file</li>
</ul>
<p>When you deploy an application built with Visual Studio 2005 or 2008 a manifest file that describes the dependencies, whether you deployed these VC++ DLLs in the local folder or they where installed in the WinSxS folder. If the manifest is missing you get an error. The next image shows the error received when running an MFC application (called Wordpad2008) build with VC++ 2008 on another machine without a manifest. </p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/vs2010deplymentwordpad2008.png" title="VC++ 2008 application without a manifest" class="alignnone" width="741" height="379" /></p>
<p>Though the purpose of this change was to simplify deployment, the result was probably the opposite. As a result Microsoft changed deployment requirements in Visual C++ 2010. You can now deploy applications without a Fusion or satellite manifest. All you need to do is copy the VC++ dependent DLLs to the application folder and run. The next image shows an MFC application (called Wordpad2010) built with VC++ 2010 running on another machine, without a satellite assembly. No error occurs any more when trying to start the application, because local deployment no longer require a satellite manifest.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/vs2010deplymentwordpad2010.png" title="VC++ 2010 application without a manifest" class="alignnone" width="741" height="411" /></p>
<p>With VC++ 2010 there are several options for deployment:</p>
<ul>
<li><strong>static linking</strong>: same as earlier</li>
<li><strong>central deployment</strong>: the VC++ DLLs are deployed in the system32 folder; this is useful for updates, because Windows automatically identifies and updates the DLLs that are deployed here</li>
<li><strong>local deployment</strong>: the application executable and its dependent DLLs are all installed in the same folder; no manifest file is required.</li>
</ul>
<p>To find more information about deployment and manifest files I suggest these links:</p>
<ul>
<li><a href="http://www.codeguru.com/forum/showthread.php?t=408061">Visual C++ Application: How to use manifests and re-distributable assemblies?</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms235316.aspx">Choosing a Deployment Method (VC++ 2008)</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/dd293574%28VS.100%29.aspx">Deployment in Visual C++ 2010</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms235342.aspx">Troubleshooting C/C++ Isolated Applications and Side-by-side Assemblies</a></li>
<li><a href="http://www.grimes.demon.co.uk/workshops/fusWSThirteen.htm">.NET Fusion</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2010/03/24/visual-studio-2010-changes-for-vc-part-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 changes for VC++ (part 4)</title>
		<link>http://mariusbancila.ro/blog/2010/03/23/visual-studio-2010-changes-for-vc-part-4/</link>
		<comments>http://mariusbancila.ro/blog/2010/03/23/visual-studio-2010-changes-for-vc-part-4/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 08:08:11 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[MFC]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[ribbon]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=498</guid>
		<description><![CDATA[VC++ Feature Pack that came with Visual Studio 2008 SP1 introduced support for the Office Fluent Ribbon. However, developers had to create ribbons entirely from code, because there was no support in the resource editor for that. Visual Studio 2010 comes with a visual designer for the ribbon. You can choose whether to use a [...]]]></description>
			<content:encoded><![CDATA[<p>VC++ Feature Pack that came with Visual Studio 2008 SP1 introduced support for the Office Fluent Ribbon. However, developers had to create ribbons entirely from code, because there was no support in the resource editor for that. Visual Studio 2010 comes with a visual designer for the ribbon.</p>
<p>You can choose whether to use a ribbon or a classical menu and toolbar when you create an application.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/ribbonnew.png" title="Use a ribbon instead of menu and toolbar" class="alignnone" width="627" height="532" /></p>
<p>By default, the created ribbon has one category (Home) and two panels with several commands.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/ribbondefault.png" title="Default ribbon" class="alignnone" width="365" height="180" /></p>
<p>The ribbon can be opened from the resource editor. There is a new category called Ribbon. By default the ribbon resource is called IDR_RIBBON. The description of the ribbon is kept in an XML file called <strong>ribbon.mfcribbon-ms</strong>, located in the res folder.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/ribbonresources.png" title="Ribbon in resource editor" class="alignnone" width="316" height="241" /></p>
<p>When the ribbon is opened, the toolbar displays controls that can be dragged and drop into the ribbon, including categories, context categories, panels, and a series of controls such as buttons, checkbox, edits, progress bar, slider, etc.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/ribbontoolbar.png" title="Ribbon toolbar" class="alignnone" width="301" height="516" /></p>
<p>There is support for several styles, Office like and Windows 7. These different styles can be seen in the following image.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/ribbonstyles.png" title="Ribbon styles" class="alignnone" width="521" height="733" /></p>
<p>The designer provides support for quick testing of the ribbon. On the Ribbon Editor toolbar there is a button called Test Ribbon that opens window with the ribbon. You can quickly see how it will look in the application, however, the commands are not available; clicking on the ribbon commands does not have any effect.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/ribbontestbutton.png" title="Ribbon designer test button" class="alignnone" width="369" height="210" /></p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/ribbontestlive.png" title="Ribbon live test" class="alignnone" width="521" height="400" /></p>
<p>You can add handlers for the ribbon commands just like you do for a menu or a toolbar. In Visual Studio 2010 this can be done with the class wizard.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/ribbonhandlers.png" title="Ribbon command handlers" class="alignnone" width="783" height="407" /></p>
<p>You can read more about the ribbon designed in <a href="http://msdn.microsoft.com/en-us/library/bb386089%28VS.100%29.aspx" target="_blank">MSDN</a> or the <a href="http://blogs.msdn.com/vcblog/archive/2009/10/01/ribbon-designer.aspx" target="_blank">VC++ Team&#8217;s Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2010/03/23/visual-studio-2010-changes-for-vc-part-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 changes for VC++ (part 3)</title>
		<link>http://mariusbancila.ro/blog/2010/03/22/visual-studio-2010-changes-for-vc-part-3/</link>
		<comments>http://mariusbancila.ro/blog/2010/03/22/visual-studio-2010-changes-for-vc-part-3/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 08:36:23 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[decltype]]></category>
		<category><![CDATA[lambda]]></category>
		<category><![CDATA[static_assert]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=491</guid>
		<description><![CDATA[Some of the important changs in Visual Studio 2010 in regard to VC++ are represented by the support in the C++ compiler of some of the features already approved for the new C++ standard, so far called C++0x. In this post I will give a short overview on then. static_assert I already wrote a post [...]]]></description>
			<content:encoded><![CDATA[<p>Some of the important changs in Visual Studio 2010 in regard to VC++ are represented by the support in the C++ compiler of some of the features already approved for the new C++ standard, so far called C++0x. In this post I will give a short overview on then.</p>
<p><strong>static_assert</strong></p>
<p>I already <a href="http://mariusbancila.ro/blog/2009/02/25/c-static_assert-a-niche-feature/">wrote a post</a> about this feature. At that time I considered it rather a niche feature. However, this looks much powerful in conjunction with the <a href="http://msdn.microsoft.com/en-us/library/bb982077.aspx">type traits classes</a> from TR1.</p>
<p>static_assert checks if an expression is true at compile time. If the expression if false a custom error message is displayed and the compilation fails. If the expression is true the declaration has no effect.</p>
<p>In the following example I create a comparison template function, that is used later to compare values.</p>
<pre class="prettyprint">
template < typename T >
bool CompareNumbers(T v1, T v2)
{
   return v1 > v2;
}

int main()
{
   bool ret1 = CompareNumbers(1, 20);
   bool ret2 = CompareNumbers("b", "a");

   return 0;
}
</pre>
<p>I want this function to be used only for integral types (the reason doesn&#8217;t matter) and I&#8217;d like the compiler to issue an error when used with any other type. Adding a static_assert check will generate a compilation error for the second call to the function, when passing strings.</p>
<pre class="prettyprint">
#include < type_traits >

template < typename T >
bool CompareNumbers(T v1, T v2)
{
   static_assert(std::tr1::is_integral< T >::value, "Type is not numeric");
   return v1 > v2;
}
</pre>
<pre class="prettyprint">
1>d:\marius\vc++\cpp0x\cpp0x.cpp(62): error C2338: Type is not numeric
1>          d:\marius\vc++\trainnings\cpp0x\cpp0x.cpp(75) : see reference to function template instantiation 'bool CompareNumbers<const char*>(T,T)' being compiled
1>          with
1>          [
1>              T=const char *
1>          ]
</pre>
<p><strong>auto</strong></p>
<p>If you are familiar with C#, this is the C++ equivalent of var. The keyword is used to deduce the type of a declared variable from its initialization expression. The initialization expression can be an assignment, direct initialization or operator new expression. It must be noted that the auto keyword is just a placeholder, not a type, and cannot be used with sizeof or typeid.</p>
<pre class="prettyprint">
auto i = 13;        // i is int
auto s = "marius";  // s is std::string
auto p = new foo(); // p is foo*

vector< int > numbers;
generate_n(back_inserter(numbers), 10, rand);
for(auto it = numbers.begin(); it != numbers.end(); ++it)
{
   cout << *it << endl;
}
</pre>
<p><strong>lambda expressions</strong></p>
<p>I already <a href="http://mariusbancila.ro/blog/2009/02/24/lambdas-in-c/">wrote about lambdas</a>, but I will give a short overview again. Again, if you are familiar with C# and .NET, this is the same concept as in .NET.</p>
<p>A lambda functions is a function object whose type is implementation dependent; its type name is only available to the compiler. The lambda expression is composed of several parts:</p>
<ul>
<li>lambda_introducer: this is the part that tells the compiler a lambda function is following. Inside the angled brackets a capture-list can be provided; this is used for capturing variables from the scope in which the lambda is created.</li>
<li>lambda-parameter-declaration: used for specifying the parameters of the lambda function.</li>
<li>lambda-return-type-clause: used for indicating the type returned by the lambda function. This is optional, because most of the time the compiler can infer the type. There are cases when this is not possible and then the type must be specified. For the example above, the return type (-> bool) is not necessary.
</li>
<li>compound-statement: this is the body of the lambda.</li>
</ul>
<pre class="prettyprint">
vector< int > numbers;
generate_n(back_inserter(numbers), 10, rand);

for_each(numbers.begin(), numbers.end(), [](int n) {cout << n << endl;});
</pre>
<p>Here <em>[]</em> is the lambda introducer, <em>(int n)</em> is the lambda parameter declaration, and <em>{cout << n << endl;}</em> is the lambda compound statement. There is no return type clause, because that is auto inferred by the compiler. There are cases when the compiler cannot deduce the return value and then it must be specified explicitly. A lambda expression is a syntactic shortcut for a functor. The code above is equivalent to:</p>
<pre class="prettyprint">
class functor_lambda
{
public:
   void operator()(int n) const
   {
      cout << n << endl;
   }
};

vector< int > numbers;
generate_n(back_inserter(numbers), 10, rand);

for_each(numbers.begin(), numbers.end(), functor_lambda());
</pre>
<p>Lambdas can capture variables from their scope by value, reference or both in any combination. In the example above, there was no value captured. This is a stateless lambda. On the other hand, a lambda that captures variables is said to have a state.</p>
<p><strong>rvalue references</strong></p>
<p>Stephan T. Lavavej wrote <a href="http://blogs.msdn.com/vcblog/archive/2009/02/03/rvalue-references-c-0x-features-in-vc10-part-2.aspx">the ultimate guide to rvalue references</a>. There is nothing more that can be said that is not already there. I strongly suggest you read his article to familiarize with this concept.</p>
<p>rvalue references are used to hold a reference to a rvalue or lvalue expression, and are introduced with &#038;&#038;. They enable the implementation of move semantics and perfect forwarding.</p>
<p>Move semantics enable transferring resources from one temporary object to another. This is possible because temporary objects (i.e. rvalues) are not referred anywhere else outside the expression in which they live. To implement move semantics you have to provide a move constructor and optionally a move assignment operator. The Standard Template Library was changed to take advantage of this feature. A classic example for the move semantics is represented by operation with sequences like vector or list. A vector allocates memory for a given number of objects. You can add elements to it and no re-allocation is done until the full capacity is reached. But when that happens, the vector has to reallocate memory. In this case it allocates a new larger chunk, copies all the existing content, and then releases the pervious memory. When an insertion operation needs to copy one element several things happen: a new element is created, its copy constructor is called, and then the old element is destroyed. With moves semantics, the allocation of a new element and its copy is no longer necessary, the existing element can be directly moved.</p>
<p>A second scenario where rvalue references are helpful is the perfect forwarding. The forwarding problem occurs when a generic function takes references as parameters and then needs to forward these parameters to another function. If a generic function takes a parameter of type const T&#038; and needs to call a function that takes T&#038;, it can't do that. So you need an overloaded generic function. What rvalue references enable is having one single generic function that takes arbitrary arguments and then forwards them to another function.</p>
<p><strong>decltype operator</strong></p>
<p>This is used to yield the type of an expression. Its primary purpose is for generic programming, in conjunction with auto, for return types of generic functions where the type depends on the arguments of the function. Here are several examples:</p>
<pre class="prettyprint">
double d = 42.0;     // decltype(i) yields double
const int&amp;&amp; f();     // decltype(f()) yields const int&amp;&amp;
struct foo {int i;}; // decltype(f.i) yields int (f being an object of type foo)
</pre>
<p>It can be used together with auto to declare late specified return type, with the alternative function declaration syntax, which is (terms in squared brackets indicate optional parts)</p>
<pre class="prettyprint">
auto function_name([parameters]) [const] [volatile] -> decltype(expression) [throw] {function_body};
</pre>
<p>In general, the expression use with decltype here should match the expression used in the return statement.</p>
<pre class="prettyprint">
struct Liters
{
   double value;
   explicit Liters(double val):value(val){}
};

struct Gallons
{
   double value;
   explicit Gallons(double val):value(val){}
};

ostream&amp; operator<<(ostream&amp; os, const Liters&amp; l)
{
   os << l.value << "l";
   return os;
}

ostream&amp; operator<<(ostream&amp; os, const Gallons&amp; g)
{
   os << g.value << "gal";
   return os;
}

Liters operator+(const Liters&amp; l1, const Liters&amp; l2)
{
   return Liters(l1.value + l2.value);
}

Gallons operator+(const Gallons&amp; g1, const Gallons&amp; g2)
{
   return Gallons(g1.value + g2.value);
}

Liters operator+(const Liters&amp; l, const Gallons&amp; g)
{
   return Liters(l.value + g.value*3.785);
}

Gallons operator+(const Gallons&amp; g, const Liters&amp; l)
{
   return Gallons(g.value + l.value*0.264);
}

template < typename T1, typename T2 >
auto Plus(T1&amp;&amp; v1, T2&amp;&amp; v2) -> decltype(forward< T1 >(v1) + forward< T2 >(v2))
{
   return forward< T1 >(v1) + forward< T2 >(v2);
}

int main()
{
   cout << Plus(l1, l2) << endl;
   cout << Plus(g1, g2) << endl;
   cout << Plus(l1, g1) << endl;
   cout << Plus(g2, l2) << endl;

   return 0;
}
</pre>
<p>The result of the execution is:</p>
<pre class="prettyprint">
15l
30gal
42.85l
22.64gal
</pre>
<p>When function Plus is called with arguments of the same type, the result is that type. But when the arguments differ, the resulting type is also different. In this example, when the first argument is Liters and second is Gallons, the result type must be Liters and the opposite. It is possible to do this without decltype, but the solution requires explicit specification of the resulting type.</p>
<pre class="prettyprint">
template < typename T, typename T1, typename T2 >
T Plus(T1&amp;&amp; v1, T2&amp;&amp; v2)
{
   return forward< T1 >(v1) + forward< T2 >(v2);
}

int main()
{
   cout << Plus<Liters>(l1, l2) << endl;
   cout << Plus<Gallons>(g1, g2) << endl;
   cout << Plus<Liters>(l1, g1) << endl;
   cout << Plus<Gallons>(g2, l2) << endl;

   return 0;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2010/03/22/visual-studio-2010-changes-for-vc-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Changes for VC++ (part 2)</title>
		<link>http://mariusbancila.ro/blog/2010/03/18/visual-studio-2010-changes-for-vc-part-2/</link>
		<comments>http://mariusbancila.ro/blog/2010/03/18/visual-studio-2010-changes-for-vc-part-2/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 08:45:13 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Browsing]]></category>
		<category><![CDATA[ClassWizard]]></category>
		<category><![CDATA[IntelliSense]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=487</guid>
		<description><![CDATA[In my previous post I talked about the new build system for VC++ from Visual Studio 2010, which is MSBuild and the support for multi-targetting. In this post I will talk about changes to IntelliSense and browsing. If you go back to the example I was providing in the first post, with the two identical [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://mariusbancila.ro/blog/2010/03/17/visual-studio-2010-changes-for-vc-part-1/">previous post</a> I talked about the new build system for VC++ from Visual Studio 2010, which is MSBuild and the support for multi-targetting. In this post I will talk about changes to IntelliSense and browsing.</p>
<p>If you go back to the example I was providing in the first post, with the two identical projects created with Visual Studio 2008 and Visual Studio 2010, a second important thing to notice in the comparison of the two solution is that the infamous .NCB file is no longer present in Visual Studio 2010 solution. Instead there is a new file with extension .SDF. This is not just a renaming of the extension, the entire Intellisense for Visual C++ was redesigned in Visual Studio 2010. This is a SQL Server Database file, possible to be opened even in Visual Studio (if one wants to check its content).</p>
<p>In the previous versions of Visual C++, each time you modified a header, the entire solution was reparsed, in which time it was very hard to use the environment. Moreover, the IntelliSense database file (the .NCB file) never seem to shrink, only increased in size, and it could get corrupted from time to time. In the new version, files are parsed on the background, and the IDE does not read all the files, only the current translation unit (which is a source file and all the headers it includes directly and indirectly). As a result, the operation is much swifter and less error prone.</p>
<p>There is also a new disk folder called <strong>iPCH</strong> in the new solution. This is the storing location for IntelliSense support files and browsing database files (SDF).</p>
<p><strong>#include auto completion</strong></p>
<p>Part of the new IntelliSense and Browsing experience, the #include keyword supports auto-completion for the header files. That means that after typing #include, the IDE displays a list of available headers, filter by their name as you type. The following image shows this.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/wordpad2010autoinclude.png" title="#include auto completion" class="alignnone" width="667" height="208" /></p>
<p><strong>Call Hierarchy</strong></p>
<p>This feature enables navigation through the code, showing the calls to and from a selected method, constructor or property. When selecting a call in the hierarchy window it shows the code where the call is made.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/wordpad2010callh.png" title="Call hierarchy window" class="alignnone" width="842" height="240" /></p>
<p><strong>Red Squiggles</strong></p>
<p>This is a feature that enables highlighting syntactic and semantic errors with a red squiggle line. Hovering the mouse over the line will show a balloon with the error message. The same error is also listed in the Error List window.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/wordpad2010squiggles.png" title="Reg quiggles for errors" class="alignnone" width="529" height="164" /></p>
<p><strong>Find All References</strong></p>
<p>In the previous versions, this features displayed only the compiler verified results for a search. If you searched for a function M member of a class C it only returned the references where function M was used in the context of C. The new version allows two types of search: one that is focus on speed, and returns all the matches for a symbol regardless the context (but it&#8217;s a narrowed search than the one performed with Find in Files), and one that is focused on accuracy and returns only the compiler verified results (i.e. the ones that match the search context).</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/wordpad2010findsym.png" title="Find all References window" class="alignnone" width="770" height="240" /></p>
<p><strong>Class Wizard</strong></p>
<p>Yet another important change is the famous and acclaimed class wizard from VC6, that was dropped in Visual Studio 2002, and was now brought back in Visual Studio 2010.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/wordpad2010classwiz.png" title="Class wizard" class="alignnone" width="816" height="685" /></p>
<p>If you are (or were) familiar with VC6 you know what the Class Wizard is. In Visual Studio 2010 it features basically the same functionality, except that it is improved with search functionality. You can search for command, messages, virtual functions, members or methods. This is great because might not know the exact name of a message or a function, but searching allows you to quickly get it with only typing part of the name. For those not familiar with VC6 this is a single point to add or remove commands, message handlers, virtual functions, member variables and methods. This was a favorite feature in VC6 for a lot of people and there was a constant pressure on Microsoft to bring it back, so here it is.</p>
<p>All these features are detailed in MSDN and on the VC++ Team blog. I suggest several additional readings:</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/dd409859%28VS.100%29.aspx" target="_blank">Call Hierarchy</a></li>
<li><a href="http://blogs.msdn.com/vcblog/archive/2009/06/01/c-gets-squiggles.aspx" target="_blank">C++ Gets Squiggles!</a></li>
<li><a href="http://blogs.msdn.com/vcblog/archive/2009/07/13/intellisense-and-browsing-with-c-0x.aspx" target="_blank">Intellisense and Browsing with C++0x</a></li>
<li><a href="http://blogs.msdn.com/vcblog/archive/2009/11/17/improvements-to-find-all-references-in-visual-studio-2010.aspx" target="_blank">Improvements to Find all references in Visual Studio 2010</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2010/03/18/visual-studio-2010-changes-for-vc-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Changes for VC++ (part 1)</title>
		<link>http://mariusbancila.ro/blog/2010/03/17/visual-studio-2010-changes-for-vc-part-1/</link>
		<comments>http://mariusbancila.ro/blog/2010/03/17/visual-studio-2010-changes-for-vc-part-1/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 09:02:34 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[msbuild]]></category>
		<category><![CDATA[VC++]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=483</guid>
		<description><![CDATA[The new version of Visual Studio, called Visual Studio 2010 comes with a series of changes for Visual C++. This includes a new build system, new project system, multi-targeting, new IntelliSense, support in MFC for new controls, new additions to the C++ compiler (which were already approved for C++0x), new deployment model, and others. In [...]]]></description>
			<content:encoded><![CDATA[<p>The new version of Visual Studio, called Visual Studio 2010 comes with a series of changes for Visual C++. This includes a new build system, new project system, multi-targeting, new IntelliSense, support in MFC for new controls, new additions to the C++ compiler (which were already approved for C++0x), new deployment model, and others. In this post I will talk about the new build system and multi-targeting.</p>
<p>In order to show the changes I will create two simple projects, one in Visual Studio 2008, called Wordpad 2008, and one in Visual Studio 2010, called Wordpad 2010. These would be simple MFC single document applications. The image bellow shows the two solutions opened in Solution Explorer.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/wordpadsolsxs.png" title="Projects in Solution Explorer, side by side" class="alignnone" width="645" height="500" /></p>
<p>As you can see both versions contain the same solutions file (only the suffix in the name differs). The next image shows the files on disk, in comparison for the two solutions.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/wordpadsxs.png" title="Solutions on disk, side by side" class="alignnone" width="828" height="432" /></p>
<p><strong>MS-Build System</strong></p>
<p>The first thing to notice (though it might not be the obvious) is that the project file extension was modified. In Visual Studio 2008 it is called .vcproj, but in Visual Studio 2010 is called .vcxproj. Not only the extension changed, but also the content of the file. This is because in Visual Studio 2010, Visual C++ build system was changed from <a href="http://msdn.microsoft.com/en-us/library/hw9dzw3c%28VS.80%29.aspx" target="_blank">VCBuild</a> to <a href="http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx" target="_blank">MSBuild</a>. This build engine was already used for the languages targeting the .NET framework.</p>
<p>MSBuild uses XML project files, and the most important elements of a project are:</p>
<ul>
<li><strong>Items</strong>: units of input into the build system, grouped into item collections, which can be used as parameters to the tasks, using the syntax <em>@(ItemCollectionName)</em>. Examples of items from the Wordpad2010 project:
<pre class="prettyprint">
  < ItemGroup >
    < ClInclude Include="MainFrm.h" / >
    < ClInclude Include="Resource.h" / >
    < ClInclude Include="stdafx.h" / >
    < ClInclude Include="targetver.h" / >
    < ClInclude Include="Wordpad2010.h" / >
    < ClInclude Include="Wordpad2010Doc.h" / >
    < ClInclude Include="Wordpad2010View.h" / >
  < /ItemGroup >
</pre>
</li>
<li><strong>Properties</strong>: pairs of key/value used to configure the builds. The value of a property can be changed after it was defined. They can be referred in the project file using the syntax <em>$(PropertyName)</em>. Examples of properties from the Wordpad2010 project.
<pre class="prettyprint">
  < PropertyGroup Label="Globals" >
    < ProjectGuid >{1E7DC2AA-8CAC-44A8-98F6-DE69249AD30C}< /ProjectGuid >
    < RootNamespace >Wordpad2010< /RootNamespace >
    < Keyword >MFCProj< /Keyword >
  < /PropertyGroup >
</pre>
</li>
<li><strong>Tasks</strong>: reusable units of executable code used to perform builds. Example of tasks can be compiling input files, linking, running external tools. Tasks can be reused in different projects.</li>
<li><strong>Targets</strong>: represent groupings of tasks in a particular order and expose parts of the project file as entry points into the build system.</li>
</ul>
<p>You can get a deeper overview on the <a href="http://msdn.microsoft.com/en-us/library/ms171452.aspx" target="_blank">MSBuild</a> engine here.</p>
<p>Another thing to notice is the presence of a file called Wordpad2010.vcxproj.filters. This file defines the solution explorer tree with the files contained in the project. This used to be a part of the file project, but in Visual Studio 2010 it was moved into a separate file. The reason is to keep the project file only for the build, not for the organization of the project.</p>
<p>The user specific settings used to be stored in a file called <strong><em>ProjectName</em>.vcproj.<em>fullyqualifiedusername</em>.user</strong>. Now there is a new file called <strong><em>ProjectName</em>.vcxproj.user</strong>.</p>
<p>You can read more about these changes in <a href="http://msdn.microsoft.com/en-us/library/ee862524%28VS.100%29.aspx" target="_blank">MSDN</a>.</p>
<p><strong>Multi-targeting</strong></p>
<p>Visual Studio 2008 came to support for multi-targeting of the .NET framework, not only for C# and VB.NET, but also for C++/CLI. In addition to that, Visual Studio 2010 comes with support for native multi-targeting.</p>
<p>The managed multi-targeting allows to target different versions of the .NET framework for mixed-mode applications. By default the target version is the latest, 4.0. This can only be changed manually in the project file. The support for changing this from the IDE was not included in this version. Actually it was dropped, because in Visual Studio 2008 this was possible.</p>
<pre class="prettyprint">
  < PropertyGroup Label="Globals" >
    < ProjectGuid >{AB3D9231-F8B6-4EAD-A15B-C792977AB26E}< /ProjectGuid >
    < RootNamespace >MixedModeDemo< /RootNamespace >
    < TargetFrameworkVersion >v3.5< /TargetFrameworkVersion >
    < Keyword >MFCDLLProj< /Keyword >
  < /PropertyGroup >
</pre>
<p>The native multi-targeting allows to use different versions of the tools and libraries to build (native) C++ projects. Of course, you must have the targeted toolset installed on your machine, in order to do that. You can define different configurations that target different versions of the toolsets. The targeted toolset can be changed from project&#8217;s properties page, General, Platform Toolset. The following image shows the available options on a machine with Visual Studio 2008 SP1 and Visual Studio 2010 installed side by side.</p>
<p><img alt="" src="/blog/wp-content/uploads/2010/03/wordpad2010propsgen.png" title="Platform toolset property in project&#039;s properties" class="alignnone" width="618" height="289" /></p>
<p>It is possible to target the previous version, 2008, 2005, 2003 and 2002. In theory it&#8217;s possible to target even VC6, but there is no support from Microsoft for that.</p>
<p>I suggest to read more about native multi-targeting <a href="http://blogs.msdn.com/vcblog/archive/2009/12/08/c-native-multi-targeting.aspx" target="_blank">here</a>, and about managed multi-targeting, for mixed-mode applications, <a href="http://blogs.msdn.com/visualstudio/archive/2009/11/22/framework-multi-targeting-for-vc-projects.aspx" target="_blank">here</a>.</p>
<p>In a next post I will talk about the changes to IntelliSense and browsing experience.</p>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2010/03/17/visual-studio-2010-changes-for-vc-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VSBuildStatus Addin Taskbar Progress on Windows 7</title>
		<link>http://mariusbancila.ro/blog/2009/12/09/vsbuildstatus-addin-taskbar-progress-on-windows-7/</link>
		<comments>http://mariusbancila.ro/blog/2009/12/09/vsbuildstatus-addin-taskbar-progress-on-windows-7/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 13:05:13 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[addin]]></category>
		<category><![CDATA[taskbar]]></category>
		<category><![CDATA[VS2005]]></category>
		<category><![CDATA[VS2008]]></category>
		<category><![CDATA[VS2010]]></category>
		<category><![CDATA[win7]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=429</guid>
		<description><![CDATA[I have updated my Visual Studio addin that displays the status of a build/clean/deploy action. If you get the latest version, 1.2, and are running Visual Studio 2005, 2008 or 2010 (they are all supported) on Windows 7, the progress of the build is also displayed on the Taskbar, on the item corresponding to the [...]]]></description>
			<content:encoded><![CDATA[<p>I have updated my <a href="http://visualstudiogallery.msdn.microsoft.com/en-us/2A2293B4-1808-44AA-B030-661F6803D8A1" target="_blank">Visual Studio addin</a> that displays the status of a build/clean/deploy action. If you get the latest version, 1.2, and are running Visual Studio 2005, 2008 or 2010 (they are all supported) on Windows 7, the progress of the build is also displayed on the Taskbar, on the item corresponding to the Visual Studio instance.</p>
<p>The following images show no progress, different progress steps, and an error during the build/clean/deploy, both for Visual Studio 2008 and Visual Studio 2010 (Beta 2). </p>
<p><img src="http://www.mariusbancila.ro/archives/addins/VSBuildStatusAddin/vsbuildstatus_noprogress.png" alt="No progress" /></p>
<p><img src="http://www.mariusbancila.ro/archives/addins/VSBuildStatusAddin/vsbuildstatus_progress1.png" alt="Build progress" /></p>
<p><img src="http://www.mariusbancila.ro/archives/addins/VSBuildStatusAddin/vsbuildstatus_progress1.png" alt="Build progress" /></p>
<p><img src="http://www.mariusbancila.ro/archives/addins/VSBuildStatusAddin/vsbuildstatus_error.png" alt="Error during build" /></p>
<p><img src="http://www.mariusbancila.ro/archives/addins/VSBuildStatusAddin/vsbuildstatusaddin_vs2010_progress.png" alt="Build progress" /></p>
<p><img src="http://www.mariusbancila.ro/archives/addins/VSBuildStatusAddin/vsbuildstatusaddin_vs2010_error.png" alt="Error during build" /></p>
<p>This was possible by using the Windows 7 Taskbar interop library available on MSDN Code Gallery <a href="http://code.msdn.microsoft.com/Windows7Taskbar/Release/ProjectReleases.aspx?ReleaseId=2246" target="_blank">here</a>.</p>
<p>You can get the latest version of the addin from the Visual Studio Gallery at this <a href="http://visualstudiogallery.msdn.microsoft.com/en-us/2A2293B4-1808-44AA-B030-661F6803D8A1" target="_blank">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2009/12/09/vsbuildstatus-addin-taskbar-progress-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Add Reference Dialog Improvements</title>
		<link>http://mariusbancila.ro/blog/2009/11/12/visual-studio-2010-add-reference-dialog-improvements/</link>
		<comments>http://mariusbancila.ro/blog/2009/11/12/visual-studio-2010-add-reference-dialog-improvements/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 13:16:53 +0000</pubDate>
		<dc:creator>Marius Bancila</dc:creator>
				<category><![CDATA[CTPs & Betas]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[VisualStudio]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://mariusbancila.ro/blog/?p=392</guid>
		<description><![CDATA[I was doing some development in Visual Studio 2010 Beta 2 and I had to add some references to my projects. When I opened the Add Reference dialog I realized something was wrong: it was working very fast. Since I&#8217;m using Visual Studio 2008 for every day development I am used to wait tens of [...]]]></description>
			<content:encoded><![CDATA[<p>I was doing some development in Visual Studio 2010 Beta 2 and I had to add some references to my projects. When I opened the Add Reference dialog I realized something was wrong: it was working very fast. Since I&#8217;m using Visual Studio 2008 for every day development I am used to wait tens of seconds before the dialog loads all the references and only after that I can select what I want. But in Visual Studio 2010 it popped up instantly and all the tabs were browse able at the same speed. This was not normal. Usually new versions are slower that older ones (and I suspect Visual Studio 2010 has such features), but Add Reference dialog works great.</p>
<p>Then I browsed the web I came across <a href="http://weblogs.asp.net/scottgu/archive/2009/10/29/add-reference-dialog-improvements-vs-2010-and-net-4-0-series.aspx" target="_blank">this post from Scott Guthrie</a> who explain what has changed:</p>
<ul>
<li>default active tab when the Add Reference dialog is opened is now Projects, and not .NET</li>
<li>.NET and COM tabs load asynchronously in worker threads, populating the lists as references are discovered, without blocking the UI thread, which means you can browse through the references as soon as you open the tab</li>
</ul>
<p>There are only two things that I can say: first is that I&#8217;m impressed. I now get instantly what it used to take maybe half a minute. Second is that I&#8217;m puzzled that it took so many years to implement that. Anyway, good work.</p>
]]></content:encoded>
			<wfw:commentRss>http://mariusbancila.ro/blog/2009/11/12/visual-studio-2010-add-reference-dialog-improvements/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
