views:

474

answers:

5

Is it possible to edit resources for an executable at runtime programmatically? If so, how? If not, is there another program that can easily be used to modify resources?

Thanks, Derek.

+5  A: 

If you're looking at updating Win32 string resources, we've done this programatically using some lovely code at Microsoft. They have a working example at doing such things. The process seems a little overly complicated but it definitely works!

Check out the Support Article at Microsoft. It has all the bits you'll need for this.

Scott Saad
A: 

Thanks for the link! I can now finish my project.

A: 

Also take a look at this sample code

Martin Beckett
A: 

MS is providing API functions to update the resources of an executable. Not only the string table but cursors, images and so on.

Check out the documentation :

http://msdn.microsoft.com/en-us/library/ms648008(VS.85).aspx

http://msdn.microsoft.com/en-us/library/ms648004(VS.85).aspx

da_m_n
A: 

Avoid codeproject code (not professional, full of bugs, written by kids) Always use MSDN code