ARTICLE

Hello World Windows Store (Metro) App Using C++

Posted by Venkatesh Kumar Articles | Windows Store Apps September 13, 2012
In this article we will create a "Hello World" Windows Store (Metro) App using C++. It's a simple app to open the Windows picture library.
Reader Level:

Introduction

In this article we will create a "Hello World" Windows Store (Metro) App using C++. It's a simple app to open the Windows picture library.

Step 1

We will select the "C++" template Windows Store Blank App.

open-windows-store.jpg

Step 2

We will add a simple button control with a click event.

add-simple-button-control-windows-store.jpg

It will result the UI as mentioned below.

result-add-simple-button-control-windows-store.jpg

Step 3

Navigate to the button click event and we will add the following code to show the alert message using the WinRT API:

Navigate-button-click-event-windows-store.jpg

And we will see the result as shown below:

result-Navigate-button-click-event-windows-store.jpg

Step 4

Using the WinRT API, we will use the Pickers object to select a file with the ".jpg" format.

pickers-object-windows-store.jpg

We will see the result as in the following:

result-pickers-object-windows-store.jpg

Summary

Using C++ to play with Windows native API's is a tedious process. But using WinRT we will able to develop applications using C++.

 

COMMENT USING