Update Resources of dll,exe files

Pluralsight courses
LinkedIn Premium uses PayScale to estimate job salaries

Premium (Not Free) Video Tutorials

Free Video Tutorials & Free Tools

  • Do You want to update the resources which are present inside pe files (.exe,.dll and others) . Well you can use Window's Beginupdateresource, Updateresource and Endupdateresource function which can do this task easily.

    Things you need to know

    • The path of the file whose resources you are updating
    • The language of resource (like english french etc which are represented by a number like 1033 stands for english)
    • The name of the resource (Keep in mind the name of the resource can be both a string value or a number )
    • A new byte array which will contain binary data of any file you need to replace the resource with it can be images etc
    • Remember in resource name if resource name is "12" you cant write 12 . It will be a numerical value but the actual value is 12 so you will need to write that only.

      For all these things(resource name,resource language etc) you can use a wonderful freeware called resource hacker .

      DOWNLOAD- http://www.angusj.com/resourcehacker/

      Now open the file whose resources you need to edit . and go to

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

      See what you actually want to do

    • update resources
    • Delete resources
  • Now you can use beginupdateresource , updateresource and endupdateresource functions to do your job.

    Remember : If you are replacing or deleting resources of a protected system file in windows vista / 7 . You wil get access is denied error

    How to fix it

    ATM i dont know any way to do this . This is a very complex task

    Related posts:

    1. Programmer Resources and News Here you will be able to find great resources for...
    2. C# SQL Update Statement Example – C# Sql Command – C# SQL Update Statement Example C# source code example illustrates how to use Sql Command...
    3. Programmer Downloads, Tools, Resources, and 100 Cheat Sheets Over 20 resources and tools that will help one to...
    4. C# ASP.NET Sql Command Update Statement Source Code Example C# ASP.NET Sql Command Update Statement Source Code Example...
    5. VB.NET Sql Command Update Statement Source Code Example VB.NET Source Code Example shows how to use Sql Command...

    Related posts brought to you by Yet Another Related Posts Plugin.

    Speak Your Mind

    Tell us what you're thinking...
    and oh, if you want a pic to show with your comment, go get a gravatar!

    Powered by WP Hashcash

    This blog uses the cross-linker plugin developed by Web-Developers.Net