viksoe.dk

WriteRes


This article was submitted .


A small utility I wrote to automatically change the icon resource of any application.

Changing the binary resources of an application is not as easy as you might think. First of all, the documentation is poor, the needed functions are only available on Windows NT and above, and the resource structures are more or less kept a secret.

Notes

This sample uses the ::UpdateResource() Windows NT API. It will not work on Windows 95/98.

Source Code Dependencies

Windows NT 4.0 SP4
Microsoft MFC Library

Download Files

DownloadSource Code (18 Kb)