Home
Recent changes

ATL code
WTL code
MFC code
C++ code
.Net code
PocketPC code
Miscellaneous

viksoe.dk

WriteRes

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)


Written by Bjarke Viksoe.
Article submitted 6/7/2001.