Home Atom Json RSS


A collection of articles on various topics that interest me. Written mostly in order to document my own solutions to problems, and published in the hope that they may help others save some time.


Adding New Asset Types to UE4

Adding custom asset types is an important, yet underused feature in Unreal Engine 4. This article shows how to accomplish this task and offers some deeper insights into the various APIs.

~ Read


Hooking into the Windows Message Queue in UE4

I recently came across several community projects that try to process Windows messages by hacking the Engine’s message loop, but there is a better way. Earlier this year I added the IWindowsMessageHandler API, which does not require any Engine code changes and keeps your plug-in self-contained.

~ Read


Implementing the abs() Function in Plain C/C++

This article describes how to calculate the absolute value of an integer without using any built-in functions in C or C++. The problem is based on an interview question that I used to ask candidates every once in a while, and it was not so much about coming up with an algorithm, but rather about understanding why the proposed algorithm works.

~ Read

10 Command-Query Responsibility Segregation (CQRS) Examples in C#

Software architectures using Command-Query Responsibility Segregation and Event Sourcing combine a range of design patterns and ideas from Domain Driven Design. Although the individual concepts are relatively easy to grasp, understanding the entire architecture can be a daunting task, especially for developers who have limited or no experience with DDD and Enterprise Software Architecture.

~ Read


Code Signing ActiveX Controls and Windows Programs

Digitally signing Windows software is straightforward and can be performed in a few simple steps. Unfortunately, the documentation for the overall process is spread across many web sites, which further adds confusion to the terminology, file types and available tools. This article is an attempt to summarize the process under Windows from a practical perspective and without adding too much technical detail.

~ Read

Custom Display and Editor Templates with ASP.NET MVC 3 Razor

Much has been written on how to create custom templates for ASP.NET MVC 2 and earlier versions, as well as the default MVC view engine. Customizing the default templates in MVC 3 using the Razor view engine is just as easy, but not exactly obvious if one doesn’t know where to start. This article provides some quick example code for replacing the default custom templates for Object view models.

~ Read


Drawing Bitmap Resources in ATL 7.0 Controls

This article provides minimal and easy to understand code samples for loading, drawing and releasing bitmap resources in ATL 7.0 controls.

~ Read

Glassy Vista Aero Forms in .NET

A search on Google will return quite a lot of more or less complicated and complete articles on how to implement Windows Vista's Aero glass look in your own .NET applications. This posting will describe how to achieve this effect with as little code as possible, and how to get a bit more out of it by processing user input accordingly.

~ Read

Getting Started with WPF in Visual C# Express Edition

Currently, none of the Visual Studio suites have out-of-the-box support for the new Windows Presentation Foundation (WPF) in the .NET Framework 3.0. This article explains what you need to get started with the development of WPF based .NET applications in Visual C# Express (and other Visual Studio Editions).

~ Read

Embedding QuickTime into .NET Applications using Visual C#

A detailed description on how to get started with QuickTime in .NET applications, and how to resolve some of the difficulties that you will encounter when developing for 64-bit platforms.

~ Read