Using C# types from C++/CX in Windows 8 Store Apps

Wednesday, September 12, 2012

One of the best things happened to Windows 8 Store Apps (aka Metro apps) is the option to write apps and games with pure, native C++, with the help of CX extensions. Aside from performance gained by using C++, being able to develop with C++ in Windows 8 Apps addresses one of the most requested scenarios: Porting and Code Sharing. Lets say that you’re the creator of a famous Mobile Application, developed using C++ for Android and other platforms, and you may want to port this great app, or pieces of it to run under...

Get screen resolution in Windows 8 Metro style application

Tuesday, July 24, 2012

Today, someone asked an interesting question in the Israeli Metro forum I’m moderating. The question was: “How can I know what’s the screen resolution in a Metro style app?” This is a tricky answer, since: This capability has been removed from the RC. We can’t rely on current window Width and Height, since it may not be fully opened (snapping). Well, searching a bit over the API’s, I didn’t find anything that can help, but, we can always use DirectX. Creating a C++ Metro style application,...