Saturday, April 30, 2011

Language Features for Targeting the CLR (Visual C++ 2010)

Language Features for Targeting the CLR (Visual C++ 2010)


Language Features for Targeting the CLR (Visual C++ 2010)

Posted: 29 Apr 2011 05:40 PM PDT

This topic presents an overview of the syntax for writing applications to target the common language runtime.

Friday, April 29, 2011

Getting Started with Script#

Getting Started with Script#


Getting Started with Script#

Posted: 28 Apr 2011 08:38 PM PDT

At MIX11, I presented a session on Script# titled " Script#: Compiling C# to JavaScript " ... and I did a follow up blog post highlighting the key points from the presentation. This blog post covers the Hello World demo, which will show how you can get started with script#, and deploy scripts authored using this approach. It doesn't go into more advanced topics, but hopefully it will also demonstrate a couple of key principles at play: Script# doesn't introduce some new and odd abstractions. You're still very much authoring script against the DOM and standard APIs, and existing knowledge of web development carries forward. The generated script is similar to script you might have authored directly, and can be distributed...(read more)

Using AgFx with OAuth

Posted: 26 Apr 2011 09:49 AM PDT

New Release First, if you wander on over to the AgFx CodePlex site, you'll see that there is a new release up. There's some new things in this new release such as some statistics about the performance of your application, the ability to specify exact cache expiration, and some bug fixes. The majority of feedback that I have gotten has been feature requests or "how do I?", and few in the way of bug reports. So it's working well for most people, hopefully that continues. Please file bugs if you find them! All of the below references the code sample that you can find in the CodePlex source tree at AgFx\Samples\Facebook.Auth.Sample . OAuth with Facebook and AgFx on Windows Phone 7 Something applications commonly want to do...(read more)

MVVM Pattern for RIA Services

Posted: 29 Apr 2011 09:06 AM PDT

At the Silverlight Firestarter '10 , John Papa did a great talk on MVVM Patterns for Silverlight and WP7 that featured WCF RIA Services as the data layer. For that talk, I helped him streamline the service layer abstraction to correctly work with the Read More......(read more)

Peter Kuhn: thoughts on MIX11

Posted: 28 Apr 2011 02:00 PM PDT

Like every year, and probably like thousands other .NET/Silverlight developers around the world, I was very thrilled when this year's MIX conference was about to start. But this time it was different for me. I had won free admittance with my entry for...( read more )...(read more)

Best Practices for Regular Expressions in the .NET Framework

Posted: 28 Apr 2011 06:45 PM PDT

The regular expression engine in the .NET Framework supports a powerful and flexible regular expression language and a sophisticated feature set that includes backtracking and balancing group definitions. As a backtracking NFA engine, however, it places the responsibility for controlling the regular expression engine on the regular expression developer. This topic discusses some of the best practices that developers can follow to maximize regular expression performance when working with regular expression objects, taking advantage of backtracking, and defining capturing groups.

ISV Helps Customers Increase Productivity by 30% with Microsoft Silverlight

Posted: 28 Apr 2011 03:54 PM PDT

In 2000, Brazil based New Age Software launched its ERP application and received disappointing feedback from customers about how the front-end was time consuming to install and the interface was difficult to learn and operate. As a result, New Age Software...( read more )...(read more)

Visifire – Charts & Gauges for WP7, WPF and Silverlight

Posted: 28 Apr 2011 02:40 PM PDT

I recently came across some very high quality charts and gauge controls available through VISIFire for WP7, WPF and Silverlight based applications. If are in need of some professional charts or gauges for your application, I would high recommend you check...( read more )...(read more)

Thursday, April 28, 2011

Silverlight TV 70: Sockets Unplugged

Silverlight TV 70: Sockets Unplugged


Silverlight TV 70: Sockets Unplugged

Posted: 28 Apr 2011 10:24 AM PDT

Silverlight TV 70: Ever wonder how to use sockets or what they're good for? In this week's episode of SLTV, Peter Smith of the Silverlight networking team joins John to discuss these topics and demonstrate how sockets work by using them to play an "I...( read more )...(read more)

Silverlight 5 Beta Rough Notes–Debugging Data-Binding

Posted: 28 Apr 2011 01:19 AM PDT

Note: these are early notes based on some initial experiments with the Silverlight 5 beta, apply a pinch of salt to what you read. A core part of the Silverlight platform and one of its strongest is the data-binding support. However, it's fair to say...( read more )...(read more)

Silverlight 5 Beta Rough Notes–Composition Thread?

Posted: 27 Apr 2011 08:50 AM PDT

Note: these are early notes based on some initial experiments with the Silverlight 5 beta, apply a pinch of salt to what you read. Here's a simple interface containing some rectangles, a couple of CheckBoxes and a Storyboard set up to rotate the...( read more )...(read more)

TF1 using Silverlight and IIS Smooth Streaming for free WP7 app

Posted: 27 Apr 2011 03:49 PM PDT

TF1, the most popular network in France, in partnership with Microsoft and Akamai, has just published its first Windows Phone 7 application featuring Silverlight , IIS Smooth Streaming and Media Player Framework . Users in France can now download the...( read more )...(read more)

John Papa MIX11 Silverlight Bootcamp Slides and Demos

Posted: 27 Apr 2011 03:23 PM PDT

Check out John Papa's blog to watch his Silverlight bootcamp about MVVM and "Hooking Up" from MIX11. In this tutorial, John demonstrates tips on MVVM concepts and walks through designer and developer scenarios. Read full post and watch demo here: MIX11...( read more )...(read more)

Wednesday, April 27, 2011

Just Posted: Stephan T. Lavavej’s Advanced STL, 4 of n

Just Posted: Stephan T. Lavavej’s Advanced STL, 4 of n


Just Posted: Stephan T. Lavavej’s Advanced STL, 4 of n

Posted: 27 Apr 2011 02:59 PM PDT

The 4th part digs into rvalue references, perfect forwarding and associative containers.The 4th part of this series digs into rvalue references, perfect forwarding and associative containers.

Advanced STL covers the gory details of the STL's implementation -> you will therefore need to be versed in the basics of STL, competent in C++ (of course), and be able to pay attention! Stephan is a great teacher and we are so happy to have him on Channel 9—the only place you'll find this level of technical detail regarding the internals of the STL. There are no books. There are no websites. This is Stephan taking us into what is uncharted territory for most, even those with a more advanced STL skill set.

[Watch Part 4 in Channel 9]

 

See the previous chapters on this Advanced STL series:

Part 1 -> shared_ptr and friends
Part 2 -> Algorithm optimization
Part 3 -> STL's comprehensive correctness checks

 

New to STL? Watch the STL Introductory Series.

ASP.NET Data Access

Posted: 27 Apr 2011 02:50 PM PDT

ASP.NET includes features that enable you to add data access to your ASP.NET Web pages with little or no code. You can connect to databases, XML data and files, and business objects as data sources. You can then display data by using a variety of controls that provide great flexibility in how you present data on the page. This section presents a progression of documentation to help you navigate through the related topics.

SQL Server Backup

Posted: 27 Apr 2011 06:22 AM PDT

SqlAdmin Backup makes it easier to created and maintain database backups in a organisation with several installations.
The database backups are standarzied to help quick and safe administration and recovery.
This tool is developed in C# using ADO.NET.

Silverlight 5 Beta Rough Notes–Linked RichTextBoxes

Posted: 27 Apr 2011 05:09 AM PDT

Note: these are early notes based on some initial experiments with the Silverlight 5 beta, apply a pinch of salt to what you read. You'll find a new class in the Silverlight 5 beta framework called the RichTextBoxOverflow – this is a really...( read more )...(read more)

Silverlight 5 Beta Rough Notes–Trusted Apps In The Browser

Posted: 27 Apr 2011 02:34 AM PDT

Note: these are early notes based on some initial experiments with the Silverlight 5 beta, apply a pinch of salt to what you read. For the longest time I've been talking about Silverlight's sandboxing abilities by saying something like; "There are 3 different...( read more )...(read more)

XNA for Silverlight developers: Part 10 - UI Elements and Menus

Posted: 26 Apr 2011 02:00 PM PDT

This article is part 10 of the series "XNA for Silverlight developers": XNA for Silverlight developers: Part 0 – Why should I care? XNA for Silverlight developers: Part 1 – Fundamentals XNA for Silverlight developers: Part 2 – Text rendering...( read more )...(read more)

Silverlight Cream for April 26, 2011 -- #1079

Posted: 26 Apr 2011 10:18 PM PDT

In this Issue: Tony Champion , Oren Gal , David Catuhe , Anuj Seth , Shawn Wildermuth , Jeff Prosise ( -2- ), WindowsPhoneGeek ( -2- ), and Jesse Liberty ( -2- ). Above the Fold: Silverlight: "Reverse geocoding in a Silverlight application" Oren Gal WP7...( read more )...(read more)

SilverlightShow for April 18 - 24, 2011

Posted: 26 Apr 2011 09:16 PM PDT

Check out the Top Five most popular news at SilverlightShow for April 18-24, 2011. Here are the top 5 news on SilverlightShow for last week: New SilverlightShow Webinar: Getting started with the Silverlight 5 Beta Silverlight 5 – Elevated Trust In-Browser...( read more )...(read more)

Building a Jounce RegionAdapter with the Accordion Control

Posted: 26 Apr 2011 08:53 PM PDT

Natively, Jounce supports two types of Region containers, the ContentControl and the ItemsControl. You can add your own containers by inheriting from RegionAdapterBase . In this post, I will show you how you can build a RegionAdapter using the Accordion...( read more )...(read more)

Silverlight 5 Beta–Binding to Dynamic Properties

Posted: 26 Apr 2011 03:45 PM PDT

I've nothing to say on this one because I've just read a great article on it so I'll link to it; Binding to Dynamic Properties with ICustomTypeProvider The one thing I would say is that if I read this correctly it won't allow for binding via IDynamicMetaObjectProvider...( read more )...(read more)

MIX 11 – Touch Renaissance

Posted: 26 Apr 2011 01:57 PM PDT

A couple weeks ago I had the tremendous opportunity to be part of the wildly popular UX Lightning series at MIX 11. The experience was simply amazing. Each session produced "sold out" crowds with people being turned away at the door. The format used for the UX Lightning talks was certainly unique. We were given [...]...(read more)

Tuesday, April 26, 2011

Hacking Education: A Contest for Developers and Data Crunchers

Hacking Education: A Contest for Developers and Data Crunchers


Hacking Education: A Contest for Developers and Data Crunchers

Posted: 26 Apr 2011 01:00 AM PDT

The folks over at DonorsChoose.org are running an "open data" context in April that I thought you all might be interested in! DonorsChoose is an online charity that makes it easy for anyone to help students in need. The difference is that the Donor can target a project directly...you can choose where your $1 goes. So far, more than 165,000 teachers at 43,000 public schools have posted over 300,000 classroom projects supported by 409,000 citizen philanthropists who have made >900,000 project donations at DonorsChoose.org to date. That makes for a whole lot of data that is publicly accessible for a contest, after of course scrubbing identifying information about teachers and donors. The resulting info will include everything from...(read more)

Binding to Dynamic Properties with ICustomTypeProvider (Silverlight 5 Beta)

Posted: 24 Apr 2011 06:40 PM PDT

Silverlight 5 Beta introduces a new ICustomTypeProvider interface that enables data binding to objects the structure of which cannot be known until runtime. This is a common problem when you work with data in any format from databases to metadata or XML...( read more )...(read more)

MS11-025 Visual C++ Update Issue

Posted: 26 Apr 2011 11:27 AM PDT

Greetings, I'm Raman Sharma, Program Manager with the Visual C++ team.

 

As part of the April Security Bulletin Release, Microsoft released security bulletin MS11-025. Since then, we became aware of some issues with this bulletin that impact some users on Windows 2000 and a subset of developers using Visual C++. Our team has identified the cause of these issues and is currently testing the fix. The update will be publicly available once testing is complete, and we will update this blog. As customer protection is a top priority for Microsoft, we are providing some workarounds for the impacted customers.


 


MFC applications running on Windows 2000

Issue

We discovered that the redistributable packages for Visual Studio 2005 and Visual Studio 2008 were propagated through Microsoft Update to Windows 2000, which is no longer a supported platform.

Developers who use Visual Studio 2005 and Visual Studio 2008 to produce applications for use on Windows 2000 machines are expected to distribute the appropriate redistributable package themselves. As a result of this automatic update, some applications dynamically linking to the MFC libraries on Windows 2000 were broken, as the updated MFC binaries happened to use an API unsupported on Windows 2000.

As soon as we became aware of this issue, we stopped automatically offering these updates on Windows 2000. We believe the exposure is fairly limited as this impacts only those applications that are not statically linked to MFC.

 

Workaround

  • For those Windows 2000 users who were impacted, the process to remove the updates is as follows:

Windows 2000 users with "Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package"

To recover a machine:

  1. Uninstall the "Microsoft Visual C++ 2005 Service Pack 1 Redistributable" from Add/Remove Programs.
  2. Install the "Microsoft Visual C++ 2005 Service Pack 1 Redistributable" from:
    http://www.microsoft.com/downloads/en/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en

 

Windows 2000 users with "Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package"

To recover a machine:

  1. Uninstall the "Microsoft Visual C++ 2008 Service Pack 1 Redistributable" from Add/Remove Programs.
  2. If you are on Windows 2000:
    1. Install the "Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package" from:
      http://www.microsoft.com/downloads/en/details.aspx?familyid=2051a0c1-c9b5-4b0a-a8f5-770a549fd78c&displaylang=en
    2. If you rely on any of the following KBs, re-install the "Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package" that came with these KBs:
      KB974479, KB979335, KB980848, KB982062, KB982107, KB982637, KB2435853, KB2465361, KB2495003

 

  • For developers the problem is slightly more complex. Visual Studio had specific updates that make the above changes to the files used to create applications so any application built on a machine, whether statically or dynamically linked will exhibit the problem. If you are currently building applications that you expect to deploy to Windows 2000 machines then you will need to do the following:

 

Developers with Visual Studio 2005

To recover a developer machine that has KB2465367 (Visual Studio 2005):

  1. Go to the Add/Remove Programs
  2. Make sure 'Show Updates' is checked.
  3. Under the "Visual Studio 2005" product node, there should be a KB2465367 entry. Select and uninstall.

 

Developers with Visual Studio 2008

To recover a developer machine that has KB2465361 (Visual Studio 2008):

  1. Go to the Add/Remove Programs
  2. Make sure 'Show Updates' is checked.
  3. Under the "Visual Studio 2008" product node, there should be a KB2465361 entry. Select and uninstall.
  4. Uninstall "Microsoft Visual C++ Runtimes for x86"
  5. Uninstall "Microsoft Visual C++ Runtimes for x64"


 


Visual Studio 2010 RTM with Windows SDK

Issue

If you have Visual Studio 2010 RTM and Windows SDK 7.1 installed on an x64 machine, then the Visual Studio 2010 update (KB2455033) fails to install on your machine.

 

Workaround

The workaround for this issue:

  1. Go to Add/Remove Programs and uninstall the package "Microsoft Visual C++ compilers 2010 Standard – enu – x64"
  2. Try installing KB2455033 again.


 

Please note that the above workaround will not actually remove the compiler bits from your machine and you should still be able to use the x64 compilers. The workaround just addresses some incorrect definitions in the patch.

We hope to release the permanent fix for these issues soon. In the meantime, customers who follow the guidance above should not be affected.

If you have any questions please let us know.

 

 

Thank you,

Raman Sharma
Microsoft Visual C++ Team

Silverlight 5 Beta Rough Notes–Silverlight and IE9 in Windowless Mode

Posted: 26 Apr 2011 06:26 AM PDT

Note: these are early notes based on some initial experiments with the Silverlight 5 beta, apply a pinch of salt to what you read. If you search the web for something like "Silverlight windowless performance" you'll find a bunch of articles that talk...( read more )...(read more)

Silverlight 4, UserControls and the dreaded “name already exists in the tree”

Posted: 26 Apr 2011 04:52 AM PDT

I was doing some work with Silverlight the other week which involved using UserControls where the control named itself. That is, a situation such as; <UserControl x:Name="foo"> <!—Content of control –> </UserControl> and, under unpredictable...( read more )...(read more)

Silverlight 5 Beta Rough Notes–Ancestor Relative Binding

Posted: 26 Apr 2011 04:39 AM PDT

Note: these are early notes based on some initial experiments with the Silverlight 5 beta, apply a pinch of salt to what you read. There's another new tweak to the binding engine in Silverlight which now allows for a RelativeSource with a Mode of Ancestor...( read more )...(read more)

Silverlight 5 Beta Rough Notes–Implicit Data Templates

Posted: 26 Apr 2011 03:13 AM PDT

Note: these are early notes based on some initial experiments with the Silverlight 5 beta, apply a pinch of salt to what you read. One of the powerful new features around templating in the Silverlight 5 beta is the ability to produce a DataTemplate that...( read more )...(read more)

Silverlight 5 Beta Rough Notes–Markup Extensions

Posted: 26 Apr 2011 02:34 AM PDT

Note: these are early notes based on some initial experiments with the Silverlight 5 beta, apply a pinch of salt to what you read. One of the WPF features that's been missing from Silverlight has been the ability to extend the XAML language by writing...( read more )...(read more)

Application Events in Silverlight

Posted: 25 Apr 2011 02:00 PM PDT

During the lifetime of a Silverlight application, some application-wide events are triggered automatically. While they are important from the perspective of Silverlight, they can come in handy as well for us as application developers: they can be seen...( read more )...(read more)

Silverlight Cream for April 25, 2011 -- #1078

Posted: 25 Apr 2011 10:22 PM PDT

In this Issue: Derik Whittaker , Morten Nielsen , Jeff Prosise ( -2- ), Harold Martinez , WindowsPhoneGeek , Jesse Liberty ( -2- ), Martin Krüger , and Xianzhong Zhu . Above the Fold: Silverlight: "Multithread Programming in Silverlight 4" Xianzhong Zhu...( read more )...(read more)

Monday, April 25, 2011

Supporting both Double and Triple Click in Silverlight 5

Supporting both Double and Triple Click in Silverlight 5


Supporting both Double and Triple Click in Silverlight 5

Posted: 25 Apr 2011 01:42 PM PDT

Silverlight 5 introduced the new ClickCount property of the MouseButtonEventArgs class . This property tells you how many times the user has rapidly clicked the mouse button. While this is useful for supporting double click and triple (or even more) click...( read more )...(read more)

Supporting both Double and Triple Click in Silverlight 5

Posted: 25 Apr 2011 01:42 PM PDT

Silverlight 5 introduced the new ClickCount property of the MouseButtonEventArgs class . This property tells you how many times the user has rapidly clicked the mouse button. While this is useful for supporting double click and triple (or even more) click...( read more )...(read more)

Fox Migrator

Posted: 19 Apr 2011 10:33 AM PDT

If you are suffering with the data extraction from old FoxPro tables Fox migrator is a solution to take foxpro tables to Oracle or Sql server databases, developed in C# using VS2010.

Silverlight Cream for April 24, 2011 -- #1077

Posted: 24 Apr 2011 08:45 PM PDT

In this Issue: Michael Washington , Morten Nielsen , John Garland , Bil Simser , Adam Nathan , András Velvárt , WindowsPhoneGeek ( -2- ), Jesse Liberty ( -2- ), Martin Krüger , Damon Payne , and Xianzhong Zhu . Above the Fold: Silverlight: "Using ICustomTypeProvider...( read more )...(read more)

Sunday, April 24, 2011

Weekly News Digest @SilverlightZone - 17-April-2011 to 23-April-2011

Weekly News Digest @SilverlightZone - 17-April-2011 to 23-April-2011


Weekly News Digest @SilverlightZone - 17-April-2011 to 23-April-2011

Posted: 23 Apr 2011 03:55 PM PDT

Here we have the weekly news digest of Silverlight-Zone.com . In this week, we have accumulated many posts (52) on Silverlight and Windows Phone 7. It's our effort to bring all good links for you, so that, you don't have to dig the internet for articles...( read more )...(read more)

My MIX11 wrap up

Posted: 23 Apr 2011 09:40 PM PDT

Last week I was in Las Vegas for the Microsoft MIX conference. I was hesitant to go there but at the last minute I decided to attend. Finally I don't regret it as I needed the latest information on Microsoft clients stack (moving) strategy, especially...( read more )...(read more)

Silverlight Cream for April 23, 2011 - 2 -- #1076

Posted: 23 Apr 2011 01:21 PM PDT

In this Issue: Dave Davis , Oren Gal , Colin Eberhardt , Dan Wahlin , Jeff Prosise ( -2- ), @yuriylsh , Bill Reiss , Richard Waddell , Andrea Boschin ( -2- ), András Velvárt . Above the Fold: Silverlight: "Working with User Names and Roles in Silverlight...( read more )...(read more)

Saturday, April 23, 2011

Babylon 3D engine for Silverlight 5 Beta available for download

Babylon 3D engine for Silverlight 5 Beta available for download


Babylon 3D engine for Silverlight 5 Beta available for download

Posted: 23 Apr 2011 01:17 PM PDT

David Catuhe has announced the availability on code.msdn.microsoft.com of Babylon, a 3D engine written to demonstrate the power of Silverlight 5 Beta. The source code is available for download here. Happy Silverlighting!...( read more )...(read more)

My talk on MIX11 (french)

Posted: 23 Apr 2011 11:00 AM PDT

This week I was invited at the Visual Studio Talk Show , a french .NET podcast, to chat with hosts Mario and Guy about the main announcements (HTML5, Silverlight 5, Windows Phone 7, IE10, Kinect, …) made at MIX this year, so in case you need a recap....( read more )...(read more)

The Visual C++ Weekly Vol. 1 Issue 17 (Apr 23, 2011)

Posted: 23 Apr 2011 12:00 PM PDT

Read in this issue:

  • [Herb Sutter] Session Announcement: C++ and the GPU… and Beyond
  • [Kate Gregory] Application Restart and Recovery on Windows 7
  • [Channel 9] Boris Jabes on Game Development and Other Demons
  • [ConcRT blog] The Concurrency Runtime and Visual C++ 2010: Rvalue References
  • [Anthony Williams] Picking Patterns for Parallel Programs (slides from ACCU 2011)
  • [Channel 9] DirectCompute Expert Roundtable Discussion
  • [Channel 9] Parallel Programming: Tasks and Continuations
  • [CodeProject] An MFC/GDI+ LCD Control

MIX 2011 slides -- "Advanced Features in Silverlight 5 (MED12)"

Posted: 22 Apr 2011 03:05 PM PDT

Thanks for everyone who came out to MIX and went to the talk. If you didn't get a chance, or want to see it again :), the video has been posted: http://channel9.msdn.com/events/MIX/MIX11/MED12 . I've attached the slides below. For what it's worth, I hid...( read more )...(read more)

Silverlight 5 Beta – available now!

Posted: 22 Apr 2011 02:29 PM PDT

On 13 th April at the MIX11 conference , Scott Guthrie announced the immediate availability of the Silverlight 5 Beta. The Beta is a major step towards the final release of Silverlight 5 later this year and includes many of the features we already announced...( read more )...(read more)

Boris Jabes on Game Development and Other Demons

Posted: 22 Apr 2011 02:56 PM PDT

Charles TorreHi, I'm Charles Torre, Sr. Technographer with Channel 9.

I recently interviewed Boris Jabes, a fun Visual C++ Program Manager guy to talk to. After a brief discussion of IntelliSense in VC++ –Boris has the distinction of being the first guy to share the news about the removal of C++/CLI IntelliSense support in VC10, we move on to exploring game development in C++ and potential directions VC may take to make it easier to build high-performing, graphically rich games.

This is one of the typically open-minded-with-candor conversations with the C++ team that have become the norm here on Channel 9 lately. True Channel 9 Old School. Much thanks to the VC++ team for being so open and helpful, and for truly listening to what the VC++ community wants and needs.

Enjoy!

[Watch or download the interview in Channel 9]