Tuesday, July 01, 2008

Read and Write Resources via Managed code - Access version, image, string, etc resources in compiled EXE’s, DLL’s, etc.

CodeProject - File Resource Management Library (.NET)

“Introduction

There are several good articles about reading and writing resources from/to a compiled binary. Most focus on retrieving module version information and modifying version information, mostly in C++. Some detail the same operations for cursor or dialog resources. There's, however, no single .NET library to retrieve and save any type of resources, or any library to edit version resources specifically.

This implementation is a framework that enumerates resources and implements both read and write of the file version (VS_VERSIONINFO) resources. It can be easily extended to other resource types.

Background

Initially, I started porting the version resource implementation from Denis Zabavchik's C++ VerInfoLib. Then, it grew bigger ...

…”

I don’t know if I’ve seen a read/write Managed Resource library like this. I may have seen ones that read, but not writes. Looks like you could use this to Linq to Resources… :)

No comments:

Post a Comment

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...