IntroductionIn 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 1We will select the "C++" template Windows Store Blank App.
Step 2We will add a simple button control with a click event.It will result the UI as mentioned below.Step 3Navigate to the button click event and we will add the following code to show the alert message using the WinRT API:And we will see the result as shown below:Step 4Using the WinRT API, we will use the Pickers object to select a file with the ".jpg" format.We will see the result as in the following:SummaryUsing C++ to play with Windows native API's is a tedious process. But using WinRT we will able to develop applications using C++.
C# Corner. All contents are copyright of their authors.