Category Archives: Metro Style

Hello world C++ Metro style app


Hello world C++ Metro style app

C++/CX or WRL?

It is really easy to create a simple C++ app using C++/CX.

Microsoft is providing two supported ways to create Metro apps in C++;

  • C++/CX language. C++ with MS specific language extensions like hat pointers.
  • A C++ template library (WRL). WRL is a C++ library-based solution, which offers template wrapper classes and explicit smart pointers.

But in fact, WRL is way too tedious and verbose to use. You not only have to manage COM interfaces, but also implement delegates and other WinRT stuff by hand. C++/CX is much simpler. This was just my opinion about WRL.

Continue reading