How to attach a resource file to an existing executable file?
问题 I have a resource file(.RES) and i want to add it into an existing executable file without recompiling and using the IDE! is it possible? Edit And how to extract the resource file? 回答1: If your question is, if you can add a resource to a existing exe file, yes it is possible. To do this you must use the UpdateResource function which can add, delete, or replace a resource in a portable executable (PE) file . update Here you have a sample code {$APPTYPE CONSOLE} uses Classes, Windows, SysUtils;