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,...

Migrating your Windows 8 Consumer Preview app to Windows 8 Release Preview

Sunday, June 3, 2012

Lately, Microsoft released Windows 8 Release Preview, and also Visual Studio 2012 RC. If you’re a Metro Style application developer, you might wonder what has changed from the last Beta. As one who have already developed Metro Style apps, I can say that there are braking changes! One of my favorite is in the Dispatcher (CoreDispatcher class) which no longer contains BeginInvoke pre-historic operation style of the old version of asynchronous pattern. Instead it contains the modern ‘async’ convention method called RunAync, which is of course Windows Runtime asynchronous method. Here’s the signature of it: public IAsyncAction RunAsync(CoreDispatcherPriority...
2 comments

Windows 8 Development Tutorial – Part 1 – First Steps

Saturday, March 3, 2012

Now that both Windows 8 Consumer Preview and Visual Studio 11 Beta have been released, it’s a fantastic time posting about Windows 8 programming, especially about the new Metro style based applications. For the sake of rapid-start, I’ll save the writing about what Metro Style application is, but I’ll give you a link in case that you’ve missed that: http://msdn.microsoft.com/en-us/library/windows/apps/hh464920.aspx   Installing Windows 8 Customer Preview Before we begin, I highly recommend you to install Windows 8 and learn about the new Metro UI language, since it’s totally different than what we are used to in current versions of...

Windows 8 Dilemma – Could it run your Enterprise Applications?

Wednesday, December 28, 2011

As it was cleared out by Microsoft about three months ago, Windows 8 based devices, running on top of ARM based CPU’s won’t be able to run existing x86 and x64 software. The only option will be running Windows 8 Metro Style applications (though the OS API’s are the same, meaning you can recompile the application and device drivers with few difficulties and have them running on top of ARM based CPU’s in desktop mode). Having this in mind, and that the Desktop mode should be considered for “legacy” applications, the questions are: Does Metro Style based application is...