Using resumable functions in the CxxReadFileComponent sample

Hello, Welcome back from holidays. A few weeks ago, I posted a note about updating the samples of my book to the November CTP of Visual C++. The main goal behind the update is to move away from using PPL tasks for WinRT asynchronous programming and instead use the new resumable functions available in the…

Tip of the day: Using Constants in WinRT

This tip comes courtesy of a question asked on an internal discussion list. Deon from the C++ team provided the answer. WinRT does not support constants. This means you cannot have code such as the following in C++ /CX: public ref class FooClass sealed { public: const int FooValue = 42; } How does one…

Purchase Modern C++ and Windows Store apps in India

Hi, Wanted to provide a quick update on the availability of my book, “Modern C++ and Windows Store apps”, in India. Get the eBook in Adobe PDF: Get the paperback edition: Thanks, Sridhar

Modern C++ and Windows Store Apps – A book about Modern C++ and native technologies

Over the past few months, I have been writing a book on developing apps using C++ and the various native technologies shipping as part of the Windows 8 wave. Some of these technologies include: C++11, C++ /CX, native XAML, the Windows Runtime, C++AMP, Windows Azure Mobile Services etc. I am happy to announce that the…

The power and flexibility of C++ or why you should write C++ apps for Windows 8 and beyond :-)

Last Friday, the C++ team in Redmond released source code for “Project Austin” a skunk works project that is essentially a note taking app. Check out the team’s announcement blog here. This app is one great example of the power of C++ allowing you to code in a largely ISO-C++ code base and then interface…

Programming Windows 8 Applications using C++ /CX–An update on the book

I have been thinking of providing an update on the status of my work on authoring “Programming Windows 8 Applications using Microsoft Visual C++”. Today marks a good time for a teaser As announced earlier, there are 6 chapters and I am almost done with 4 chapters along with samples that explain the finer concepts…

Using JSON and C++ in Windows 8 Apps

The LiveSDK team has a bunch of exciting samples demonstrating using JavaScript along with HTML, C# with XAML to build apps that integrate Live services. Sadly however, a full blown C++ sample is missing from the lot as I write this today. Last week I built a proof of concept …

Announcement: Book on C++ /Cx and Metro style app development

Hi I am happy to announce an upcoming book on C++ /Cx and Metro style app development. This book is currently in the works and will be published by Microsoft Press. I present a brief list of topics that are … Continue reading →

Implementing an IValueConverter in C++ /Cx for Data Binding

To create a value converter, we create a class that implements the IValueConverter interface and then implement the Convert and (optionally) the ConvertBack methods. Converters can change data from one type to another, translate data based on cultural info, or … Continue reading →

Reflection in the native Windows Runtime

If the Windows Runtime has all sorts of metadata information on classes, types, interfaces etc, could a developer implement Reflection for native types? James McNellis has done just that. He has coded up a reflection library for native types. Just … Continue reading →