{"id":2573,"date":"2012-02-29T07:00:00","date_gmt":"2012-02-29T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2012\/02\/29\/whats-new-in-visual-studio-11-beta-for-c-developers\/"},"modified":"2019-02-18T18:41:49","modified_gmt":"2019-02-18T18:41:49","slug":"whats-new-in-visual-studio-11-beta-for-c-developers","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/whats-new-in-visual-studio-11-beta-for-c-developers\/","title":{"rendered":"What&#039;s New in Visual Studio 11 Beta for C++ Developers"},"content":{"rendered":"<p>&nbsp;<\/p>\n<table style=\"width: 75%\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\">XAML<\/td>\n<td valign=\"top\"><span style=\"font-family: Courier New\"><span style=\"background: white;color: blue\">&lt;<\/span><span style=\"background: white;color: #a31515\">TextBox <\/span><span style=\"background: white;color: red\">x<\/span><span style=\"background: white;color: blue\">:<\/span><span style=\"background: white;color: red\">Name<\/span><span style=\"background: white;color: blue\">=&#8221;<span style=\"background-color: #ffff00\">textbox<\/span>&#8220;<\/span><\/span><span style=\"font-family: Courier New\"><span style=\"background: white;color: blue\">\/&gt;<\/span><\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">C++<\/td>\n<td valign=\"top\"><span style=\"font-family: Courier New\"><span style=\"background: white;color: black\"><span style=\"color: #2b91af\"><\/span> <br \/><span style=\"background-color: #ffff00\">textbox<\/span>-&gt;Text = <\/span><span style=\"background: white;color: maroon\">&#8220;Hello World!&#8221;<\/span><span style=\"background: white;color: black\">;<\/span><\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">Output<\/td>\n<td valign=\"top\"><img decoding=\"async\" width=\"244\" height=\"154\" title=\"A Metro style HelloWorld.cpp\" alt=\"A Metro style HelloWorld.cpp\" src=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/65\/69\/metablogapi\/6507.image_7E5E8F7D.png\" border=\"0\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Snippets of the Metro style version for the most popular 101 application.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Download this Beta today:<\/p>\n<ul>\n<li><a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=239723\" target=\"_blank\">Windows 8 Consumer Preview<\/a><\/li>\n<li><a href=\"http:\/\/go.microsoft.com\/fwlink\/p\/?LinkId=240162\" target=\"_blank\">Visual Studio 11 Beta Downloads<\/a>&nbsp;(includes Visual Studio 11 Beta, Team Foundation Server 11 Beta, and .NET Framework 4.5 Beta)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>As <a href=\"http:\/\/blogs.msdn.com\/b\/jasonz\/archive\/2012\/02\/29\/welcome-to-the-beta-of-visual-studio-11-and-net-framework-4-5.aspx\" target=\"_blank\">Jason Zander &ndash;CVP of Visual Studio- just confirmed<\/a>, a <strong>Visual Studio 11 Beta<\/strong> was released earlier today.<\/p>\n<p>What can C++&nbsp;developers expect from this&nbsp;new version&nbsp;compared to Visual Studio 2010? Here&#8217;s a summary:<\/p>\n<ul>\n<li><strong>Windows 8<\/strong>:<\/li>\n<ul>\n<li>Support for <strong>Metro style apps<\/strong> using native C++ code.<\/li>\n<li>C++ Metro style applications can create new UI using DirectX and\/or the completely-new all-native XAML UI framework for Windows 8.<\/li>\n<li>C++ developers can also create components that extend Windows 8 apps written in HTML5\/JavaScript.<\/li>\n<\/ul>\n<li><strong>C++11<\/strong>:<\/li>\n<ul>\n<li><strong>New core language features<\/strong>: range-based <span style=\"font-family: courier new,courier\">for<\/span>-loop, override\/final, and strongly-typed\/forward-declared <span style=\"font-family: courier new,courier\">enum<\/span>s.<\/li>\n<li>More core language features to follow shortly after Visual Studio 11.<\/li>\n<li><strong>New Standard Library headers<\/strong>: &lt;<span style=\"font-family: courier new,courier\">atomic<\/span>&gt;, &lt;<span style=\"font-family: courier new,courier\">chrono<\/span>&gt;, &lt;<span style=\"font-family: courier new,courier\">condition_variable<\/span>&gt;, &lt;<span style=\"font-family: courier new,courier\">future<\/span>&gt;, &lt;<span style=\"font-family: courier new,courier\">mutex<\/span>&gt;, &lt;<span style=\"font-family: courier new,courier\">ratio<\/span>&gt;, &lt;<span style=\"font-family: courier new,courier\">scoped<\/span>_<span style=\"font-family: courier new,courier\">allocator<\/span>&gt;, and &lt;<span style=\"font-family: courier new,courier\">thread<\/span>&gt;.&nbsp; Also &lt;<span style=\"font-family: courier new,courier\">filesystem<\/span>&gt;.<\/li>\n<li><strong>Emplacement methods<\/strong> have been implemented in all containers for &#8220;arbitrary&#8221; numbers of arguments.<\/li>\n<li><strong>Simulated variadic templates<\/strong> now accept a maximum of 5 arguments by default, down from 10.&nbsp; To increase this limit, at the cost of compiler speed, define <span style=\"font-family: courier new,courier\">_VARIADIC_MAX<\/span> project-wide between 5 and 10 inclusive.<\/li>\n<li><strong>Per-container and per-element memory consumption<\/strong> has been optimized.<\/li>\n<\/ul>\n<li><strong>Code Performance and Parallelism<\/strong>:<\/li>\n<ul>\n<li>The <strong>Parallel Patterns Library (PPL)<\/strong> that we released in Visual Studio 2010 has had numerous enhancements to it in Visual Studio 11. We&rsquo;ve added <a href=\"http:\/\/blogs.msdn.com\/b\/nativeconcurrency\/archive\/2012\/02\/28\/ppl-and-concrt-what-s-new-in-visual-studio-11-beta.aspx\" target=\"_blank\">new parallel algorithms, concurrent containers, and scheduler enhancements<\/a>. We also <a href=\"http:\/\/blogs.msdn.com\/b\/nativeconcurrency\/archive\/2011\/09\/13\/performance-enhancements-to-parallel-patterns-library-ppl-and-concurrency-runtime.aspx\" target=\"_blank\">increased performance across the board<\/a>. Last, but not least, we added support for <a href=\"http:\/\/blogs.msdn.com\/b\/nativeconcurrency\/archive\/2011\/09\/22\/windows-8-asynchrony-with-ppl.aspx\" target=\"_blank\">Windows 8 asynchronous tasks<\/a>.<\/li>\n<li>Improved compiler optimization technologies to make your compiled code run faster. C++ compiled code is now automatically vectorized and parallelized for improved performance.<\/li>\n<li><strong><\/strong>Support for heterogeneous computing through <a href=\"http:\/\/blogs.msdn.com\/b\/nativeconcurrency\/archive\/2011\/09\/13\/c-amp-in-a-nutshell.aspx\" target=\"_blank\">C++ AMP<\/a>. Download one of the many <a href=\"http:\/\/blogs.msdn.com\/b\/nativeconcurrency\/archive\/2012\/01\/30\/c-amp-sample-projects-for-download.aspx\" target=\"_blank\">C++ AMP sample projects<\/a> to see how easily you can take advantage of the GPU compute power, including a multi-core and SSE fallback. C++ AMP is not just a technology you get in Visual Studio 11, but also our gift to the wider community through the <a href=\"http:\/\/blogs.msdn.com\/b\/nativeconcurrency\/archive\/2012\/02\/03\/c-amp-open-spec-published.aspx\" target=\"_blank\">C++ AMP open specification<\/a>.<\/li>\n<\/ul>\n<li><strong><a href=\"http:\/\/blogs.msdn.com\/b\/vcblog\/archive\/2011\/08\/24\/10200097.aspx\" target=\"_blank\">IDE Enhancements<\/a><\/strong>:<\/li>\n<ul>\n<li><strong>Code understanding enhancements<\/strong> like semantic colorization and reference highlighting.<\/li>\n<li><strong>Editing enhancements<\/strong> like proactive IntelliSense, member list filtering and code snippets.<\/li>\n<\/ul>\n<li><strong><a href=\"http:\/\/blogs.msdn.com\/b\/vcblog\/archive\/2011\/05\/18\/10166142.aspx\" target=\"_blank\">Application Lifecycle Management (ALM)<\/a><\/strong>:<\/li>\n<ul>\n<li>Comprehensive tools like <strong>dependency diagrams<\/strong> and the <strong>Architecture Explorer<\/strong>.<\/li>\n<li>Testing tools like a new <strong>Unit Testing Framework<\/strong> and <strong>Code Coverage<\/strong>.<\/li>\n<li><strong>Static Analysis<\/strong> for a better diagnosis of coding errors even if the compilation is okay.<\/li>\n<\/ul>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>For further information, <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/hh409293(v=vs.110).aspx\" target=\"_blank\">these MSDN Library article dives deeper in these new features for Visual C++ developers<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Links of interest:<\/p>\n<ul>\n<li><b><a href=\"http:\/\/blogs.msdn.com\/b\/jasonz\/archive\/2012\/02\/29\/welcome-to-the-beta-of-visual-studio-11-and-net-framework-4-5.aspx\" target=\"_blank\">Visual Studio 11 Beta &amp; .NET 4.5 Beta Announcement by Jason Zander<\/a><\/b><\/li>\n<li><b><a href=\"http:\/\/blogs.msdn.com\/b\/b8\" target=\"_blank\">Windows 8 Consumer Preview Announcement<\/a><\/b> (on the &ldquo;Building Windows 8&rdquo; blog)<\/li>\n<li><b><a href=\"http:\/\/go.microsoft.com\/fwlink\/p\/?LinkId=240162\" target=\"_blank\">Visual Studio 11 Beta Downloads<\/a><\/b> (includes Visual Studio 11 Beta, Team Foundation Server 11 Beta, and .NET Framework 4.5 Beta)<\/li>\n<li><b><a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=239723\" target=\"_blank\">Windows 8 Consumer Preview Download<\/a><\/b><\/li>\n<li>Submit bugs to the<b> <a href=\"http:\/\/connect.microsoft.com\/visualstudio\" target=\"_blank\">Visual Studio<\/a><\/b> or<b> <a href=\"http:\/\/connect.microsoft.com\/expression\" target=\"_blank\">Blend<\/a><\/b> Connect sites<\/li>\n<li>Ask questions on the<b> <a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/category\/vsvnext\" target=\"_blank\">Visual Studio<\/a><\/b> or<b> <a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/en-us\/category\/windowsapps\" target=\"_blank\">Windows<\/a><\/b> forums<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; XAML &lt;TextBox x:Name=&#8221;textbox&#8220;\/&gt; C++ textbox-&gt;Text = &#8220;Hello World!&#8221;; Output Snippets of the Metro style version for the most popular 101 application. &nbsp; &nbsp; &nbsp; Download this Beta today: Windows 8 Consumer Preview Visual Studio 11 Beta Downloads&nbsp;(includes Visual Studio 11 Beta, Team Foundation Server 11 Beta, and .NET Framework 4.5 Beta) &nbsp; &nbsp; &nbsp; [&hellip;]<\/p>\n","protected":false},"author":289,"featured_media":35994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2573","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus"],"acf":[],"blog_post_summary":"<p>&nbsp; XAML &lt;TextBox x:Name=&#8221;textbox&#8220;\/&gt; C++ textbox-&gt;Text = &#8220;Hello World!&#8221;; Output Snippets of the Metro style version for the most popular 101 application. &nbsp; &nbsp; &nbsp; Download this Beta today: Windows 8 Consumer Preview Visual Studio 11 Beta Downloads&nbsp;(includes Visual Studio 11 Beta, Team Foundation Server 11 Beta, and .NET Framework 4.5 Beta) &nbsp; &nbsp; &nbsp; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/2573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/289"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=2573"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/2573\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35994"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=2573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=2573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=2573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}