DCSIMG
.NET 4.5,Windows Runtime - Pavel's Blog
Sign in | Join | Help

Pavel's Blog

Pavel is a software guy that is interested in almost everything
software related... way too much for too little time

Browse by Tags

C# 5.0: await and Reentrancy
28 January 13 04:45 AM | pavely | with no comments
The relatively new async/await keywords in C# 5.0 are truly great. I’ve been using them for a while now, and I always contrast these to the way things can be done in C++11 ; and even with the help of PPL tasks – it stands out as clearly victorious, with its ease of use and lack of verbosity. In fact, it’s so easy to use that I find myself creating new methods that are mostly “Async”, even if the benefit may not be that great – just because it’s easy to do. For example, suppose there is a method that...
Making HTTP calls in WinRT with C++
14 January 13 04:36 AM | pavely | with no comments
When working with Windows Store applications (“metro”), it’s sometimes necessary to make HTTP calls. one classic example is to register for push notifications . After obtaining a unique channel URI, the app needs to send that URI to its application server, as that particular URI is the one to use by the application server to execute a push notification against the Windows Notification Service (WNS). Getting the channel URI is fairly simple, with a call to the static PushNotificationChannelManager...
Windows 8 Store Apps: Class Library vs. Windows Runtime Component
30 October 12 03:14 PM | pavely | 1 comment(s)
When working with Windows 8 Store apps in C# (or VB, but I’ll stick with C#), there are several ways of creating reusable (or at least seemingly reusable) class libraries for Windows 8 Store projects. In this post, I’ll take a to look at the options, contrasting their features and usefulness. Looking at the new project dialog in Visual Studio 2012, under the Windows Store node (under Visual C# ), we can see the following: There is a third option, the traditional Class Library project located under...
Windows 8 Metro: C++/CX vs. C#
25 June 12 10:05 PM | pavely | 9 comment(s)
Lately, I’ve been doing development of a Windows 8 Metro application using C++ only (yes, that’s right, no C#) for a client. The reasons for that are mainly an existing C++ code base and a good C++ acquaintance that the team in question has. I’ve been using the new C++/CX extensions that make it easier to work with the Windows Runtime (WinRT); easier with respect to the Windows Runtime Library (WRL) that uses standard C++ with a bunch of helpers (such as ComPtr<T> as a smart pointer for a COM...
My Visual Studio 2012 & C# 5.0 Presentation
18 June 12 02:02 PM | pavely | 1 comment(s)
This morning I presented a session on new features in Visual Studio 2012 and the new language features in C# 5.0. Thank you all for attending! The presentation and demos can be downloaded from https://skydrive.live.com/?cid=45C1880107EBE12C&id=45C1880107EBE12C%2118700
My Async Programming with C# 5.0 & .NET 4.5 session is available for viewing
28 March 12 10:26 PM | pavely | with no comments
The session I gave at Microsoft Ra’anana two days is available on channel 9 . This was in Hebrew, so if this is not your native tongue, you can probably still enjoy the code demos. Here are the links: Part 1 Part 2 Enjoy!
Asynchronous Programming with C# 5.0 & .NET 4.5 Session
26 March 12 01:38 PM | pavely | 1 comment(s)
This morning I gave a session on asynchronous programming with C# 5.0 at Microsoft offices in Ra’anana. Thank you all for attending, it was great fun! As promised, the presentation slides and demos are attached below (the Windows 8 demos can naturally be run on Windows 8 only). The session was recorded, so if you missed it, or just want to hear the same jokes again, the recording will be available in a few days – check out the MSDN blog for details of availability. Async Demos Async Metro Demo Presentation...
Presentations I’ll be giving this month
13 March 12 11:03 PM | pavely | 2 comment(s)
This month turned out to be a busy one for me, at least as far as public presentations are concerned. All sessions are free of charge, but you should register – details follow: Parallel and Asynchronous Programming with .NET 4/4.5 and C# 5.0 This session is to be held on the 20th, at John Bryce offices in Tel Aviv. I will do a quick recap of tasks and the Parallel class, and then move to async programming with and without the new C# 5.0 features. I will be using VS 2010 and the recently released...