Sample code for changing icons in 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 test.exe will have it's main icon changed.

Source Code