Mysterious “Not enough quota is available to process this command” in WinRT port of DataGrid

OK, with some critical input from Tim Heuer [MSFT], I figured out what was going on and how to get around this problem. Surprisingly, none of my three initial guesses were correct. This wasn’t about memory, threading, or system resources. Instead, it was about limitations in the Windows messaging system. Apparently it is a little … Read more

Converting HTML entities to Unicode Characters in C#

I recommend using System.Net.WebUtility.HtmlDecode and NOT HttpUtility.HtmlDecode. This is due to the fact that the System.Web reference does not exist in Winforms/WPF/Console applications and you can get the exact same result using this class (which is already added as a reference in all those projects). Usage: string s = System.Net.WebUtility.HtmlDecode(“é”); // Returns é

WinRT/UWP Frame and Page caching: How to create new page instance on Navigate() and keep the page instance on GoBack()

Because there was no solution to this problem, I had to reimplement all paging relevant classes: Page, Frame, SuspensionManager, etc… The solution can be downloaded here: https://github.com/MyToolkit/MyToolkit/wiki/Paging-Overview Update: The page class now also provides the OnNavigatingFromAsync method to show for example an async popup and cancel navigation if required…

Why does my application require Visual C++ Redistributable package

The only version of the C runtime library which is shipped by Microsoft with most of 32 bit Windows versions is msvcrt.dll. This library provides a typical set of library functions required by C and C++ programs. These include string manipulation, memory allocation, C-style input/output calls, etc. Visual Studio 6.0’s compiler links against this library, … Read more

How to Distribute Compiled Windows 8 Metro Applications without Windows Store?

Each machine that wants to install the application will need a developer license. See this page for some details. When you have your app ready: select Store->Create App Package Select Build a package to use locally only Follow the prompts This will create a package in whatever folder you specified. You should be able to … Read more

Using WinRT from C?

WinRT is fundamentally COM, so using WinRT components from C is like using COM components from C. Like before, you get .idl files for all WinRT components, and also .h files produced from those .idl files. The .h files include both C++ and C declarations (wrapped in #ifdef __cplusplus as needed). You can just #include … Read more