Sample code for extracting icons from executables using madshi's madres components.
Compile project 1. This will be the target executable holding the icons (defined in icons.rc which is already compiled with brcc32)
Copy project1.exe as test.exe
Compile project 2. Run it. You will see that 3 files will appear, saved_main.ico, saved_test.ico and saved_128.ico which will hold the icons. (yes, right now 128 and test are both green :) you can change that from icons.rc and recompile icons.rc and project1).