Search code examples
c++resourcesexecutableportable-executable

How can I edit the resources in an executable using C++?


I need a way to edit the resources (A String Table, to be exact) of a compiled executable and I need to do it in C++.

Can anybody offer any guidance/sample code on how I can go about doing this?


Solution

  • Start with LoadLibrary() that and load an executable(the one you want to edit) Then FindResource() and UpdateResource() as necessary.

    Read all about it here:

    PE format Resource Functions