Tuesday, April 5, 2011

Back from MIX11 session at the Montreal User Group

Back from MIX11 session at the Montreal User Group


Back from MIX11 session at the Montreal User Group

Posted: 05 Apr 2011 01:19 PM PDT

This year again I will be at MIX , the major Microsoft Conference about web technologies, which will be held next week in Las Vegas. I expect to hear cool stuff about: Silverlight 5 Silverlight with Azure Silverlight on XBox? Expression Studio 5? Windows...( read more )...(read more)

The Visual C++ Weekly Vol. 1 Issue 14 (Apr 2, 2011)

Posted: 02 Apr 2011 12:00 PM PDT

Read in this issue:

  • Troubleshooting Tips for IntelliSense Slowness
  • The Concurrency Runtime and Visual C++ 2010: Lambda Expressions
  • CMapi v1.23 (MFC classes for sending and receiving mail using Simple MAPI)
  • Exception Boundaries: Working With Multiple Error Handling Mechanisms
  • Is it reasonable to use the prefix increment operator ++it instead of postfix operator it++ for iterators?
  • Meet the Visual C++ Most Valuable Professionals (II)
  • Windows 7 Taskbar Integration for MFC Applications
  • Windows Restart and Recovery Recipe

_ITERATOR_DEBUG_LEVEL - Advanced STL, Part 3

Posted: 05 Apr 2011 01:50 PM PDT

In Part 3 of my video lecture series exploring the Standard Template Library's implementation, I explain how our powerful correctness checks in debug mode work.  In VC10, they're controlled by the macro _ITERATOR_DEBUG_LEVEL, which supersedes VC8 and VC9's more confusing _SECURE_SCL and _HAS_ITERATOR_DEBUGGING macros.  Additionally, VC10's #pragma detect_mismatch allows the linker to detect badness that previously would have caused incomprehensible crashes.  Finally, I demonstrate the undocumented and unsupported but exceedingly awesome compiler option /d1reportSingleClassLayout which prints an ASCII art diagram of a class's representation.

 

This advanced series assumes that you're familiar with C++ and the STL's interface, but not the STL's implementation.  If you haven't used the STL extensively yet, I recommend watching my introductory series.  For reference, here are all of the links:

 

[STL Introduction]

Part 1 (sequence containers)

Part 2 (associative containers)

Part 3 (smart pointers)

Part 4 (Nurikabe solver) - see Wikipedia's article and my updated source code

Part 5 (Nurikabe solver, continued)

Part 6 (algorithms and functors)

Part 7 (algorithms and functors, continued)

Part 8 (regular expressions)

Part 9 (rvalue references)

Part 10 (type traits)

 

[Advanced STL]

Part 1 (shared_ptr - type erasure)

Part 2 (equal()/copy() - algorithm optimizations)

Part 3 (_ITERATOR_DEBUG_LEVEL, #pragma detect_mismatch, and /d1reportSingleClassLayout)

 

Stephan T. Lavavej

Visual C++ Libraries Developer

Windows Phone 7 XNA Game Tutorial For Ya

Posted: 05 Apr 2011 10:34 AM PDT

The Microsoft game folks just released a tutorial that will guide you through the creation of a two-dimensional action game – called Shooter – on Windows, Xbox 360, or Windows Phone 7....( read more )...(read more)

Silverlight UserGroup Meeting tomorrow night April 6, 2011

Posted: 05 Apr 2011 10:35 AM PDT

Yes tomorrow really is the first Wednesday of the month! and Yes, we are having our normally scheduled meeting. The Silverlight User Group meeting will be from 6PM to 8PM at Interface Technical Training (NW corner of Central & Thomas) -- check PhoenixSilverlight...( read more )...(read more)

SilverlightShow for March 28-April 3, 2011

Posted: 05 Apr 2011 07:31 AM PDT

Check out the Top Five most popular news at SilverlightShow for March 28-April 3, 2011. Here are the top 5 news on SilverlightShow for last week: Force the NoDo update on the Samsung Omnia 7 and other Windows Phone 7 devices New Book: Developer's Guide...( read more )...(read more)

How to design a Custom Control by editing the Part Template?

Posted: 05 Apr 2011 01:23 AM PDT

This is a continuation to my previous post " How to create a Custom Control in Silverlight? " In this tutorial part, we will discuss on the template and modify our basic template to give a better look as per our need. In this chapter, we will...( read more )...(read more)

Build Related Improvement in VS2010 SP1

Posted: 05 Apr 2011 09:00 AM PDT

Hi, my name is Li Shao. I am a Software Design Engineer in Test in C++ team. In VS2010, C++ has accomplished the migration of VCBuild to MSBuild based project and Build system. We have received very warm acceptance and overall customer satisfaction is very good. You can take a look of a few of my previous blogs (Native MultiTargeting, Conversion, Custom Build Rules) for some features and issues related to migration to MSBuild based build system for C++. VS2010 VS2010 SP1 release is around the corner. I would like to take this opportunity to let you know a few improvements that we have made in this area based on your feedback.

 

Managed Incremental Build

When referencing managed assemblies, a full rebuild is only needed when there are significant changes in the referenced assemblies. Significant changes include things like assembly version change, function signature, interface changes, etc. This functionality will greatly reduce the build time for managed or managed/native interop applications, where managed or managed assemblies are referenced.

We first introduced the managed incremental build feature in VS2008. In VS2010, we were not able to re-implement the managed incremental build feature with the build system moving to MSBuild. We received strong customer requests for this feature. As a result, we re-implemented this feature and it is included in VS2010 SP1.

Enable Managed Incremental Build

 

Custom Dependency File List for Incremental Build

One of the customer reported issues is that for VS2010 disregards the //{{NO_DEPENDENCIES}} line in the resource.h of MFC applications. When there is a resource.h change either manually or by adding a resource ID using the resource editor, all the files that include resource.h get rebuilt. This has a negative performance impact since resource.h can be included by many files. It is also a behavior change from VS2008.

To fix the problem, in VS2010 SP1, we have implemented a fix so that you can specify the list of header files that they would like to skip when doing incremental build. The property introduced is "NoDependencies". There are four ways that you can take advantage of this feature:

1. Set as an environment variable

You can use this approach if the dependencies to resource header files are common across all your projects. For example: set NoDependencies=resource.h;resource2.h.

You can set this in the environment that you launch Devenv or set this in your build environment

2. Set through property sheet

You can create a property sheet and set General -> No Dependencies File List to the list of files that you would like to exclude from dependency check.

No Dependencies File List

3. Set as a global property for your project

You can set the property as the following to the "Global" property of the project file:

  1. <PropertyGroup Label="Globals">
  2. <ProjectGuid>{3C2EE7D3-A2C9-40A5-91F0-3F988C8D5DF5}</ProjectGuid>
  3. <Keyword>AtlProj</Keyword>
  4. <NoDependencies> resource.h;resource2.h</NoDependencies>
  5. </PropertyGroup>

4. Set as a file level property

  1. <ClInclude Include="resource.h">
  2. <NoDependency>true</NoDependency>
  3. </ClInclude>

Note that this feature only works if you would like to skip certain headers from incremental building. It does not work for files other than header files.

 

Signing of Managed Assemblies

In VS2010, there was a bug that signing of the managed assemblies cannot be accomplished when Linker -> Advanced -> Delay Sign is set to "Yes". We have previously recommended a workaround to address this issue. In general, you would need to use post build steps to sign the assembly. This is a regression in terms of functionality from VS2008 behavior. In VS2010 SP1, we have attempted to fix the problem. However, there were still some issues with the fix. You can take a look of this blog posted by my colleague Amit Mohindra on how to fix the problem. Essentially, you need to manually modify Microsoft.Cpp.Win32.targets. You can also take a look of this readme (http://go.microsoft.com/fwlink/?LinkId=210711 – section 2.4.1.2) if you have application converted with VS2010 prior to SP1 RTM.

 

These are the major changes we have made in SP1 regarding C++ build scenarios. Please let me know if you think there are issues we should have fixed. We will try to address them in future releases.

Producing and Consuming OData in a Silverlight and Windows Phone 7 application (Part 3)

Posted: 04 Apr 2011 03:01 PM PDT

Don't miss... Webinar recording: Building LOB apps with Silverlight and WCF Data Services WP7 series by Andrea Boschin WP7 Developer Guide Show more books This article is Part 3 of the series "Producing and Consuming OData in a Silverlight and Windows...( read more )...(read more)

Opus Suite

Posted: 04 Apr 2011 06:14 AM PDT

Owner/Occupier Property Management software for the commercial and residential rental markets using the ASP.NET MVC platform.

Silverlight Cream for April 04, 2011 -- #1070

Posted: 04 Apr 2011 08:39 PM PDT

In this Issue: Kevin Hoffman , Kunal Chowdhury ( -2- ), Colin Eberhardt , Rudi Grobler , Michael Washington , WindowsPhoneGeek , Nigel Sampson , Jeff Prosise ( -2- ), and Andrea Boschin ( -2- , -3- , -4- ). Above the Fold: Silverlight: "How to create...( read more )...(read more)

Silverlight Connections 2011 Moving from Windows Forms to Silverlight and WPF Presentation

Posted: 04 Apr 2011 06:12 PM PDT

At DevConnections (Silverlight Connections) this year, I gave a short session on moving your applications from Windows Forms to Silverlight.In that session, I covered a little bit of WinForms, a little Entity Framework Code First, and a lot of code shuffling...( read more )...(read more)

Silverlight Connections 2011 Moving from Windows Forms to Silverlight and WPF Presentation

Posted: 04 Apr 2011 06:12 PM PDT

At DevConnections (Silverlight Connections) this year, I gave a short session on moving your applications from Windows Forms to Silverlight.In that session, I covered a little bit of WinForms, a little Entity Framework Code First, and a lot of code shuffling...( read more )...(read more)

Standards-based web, plug-ins, and Silverlight

Posted: 04 Apr 2011 04:36 PM PDT

As we drive toward MIX, we wanted to share our thoughts on the role of plug-ins in general, and Silverlight in particular, in the context of HTML5 and the future of the web. As we have been more vocal about our commitment to and investment in HTML5 as...( read more )...(read more)

Procedural Animations in Silverlight

Posted: 04 Apr 2011 03:38 PM PDT

I loved this post over on the Clarity Consulting blog about procedural animations in Silverlight – very cool; http://blogs.claritycon.com/blog/2011/03/30/advanced-animation-animating-15000-visuals-in-silverlight-2/   I gave it a try in IE9 on my...( read more )...(read more)

Windows Client Developer Roundup 065 for 4/4/2011

Posted: 04 Apr 2011 02:05 PM PDT

This is Windows Client Developer Roundup #65. The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++ , XNA , Expression Blend , Surface , Windows 7 , Windows Phone...( read more )...(read more)

Windows Client Developer Roundup 065 for 4/4/2011

Posted: 04 Apr 2011 02:05 PM PDT

This is Windows Client Developer Roundup #65. The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++ , XNA , Expression Blend , Surface , Windows 7 , Windows Phone...( read more )...(read more)

No comments:

Post a Comment