Hi,

I've found this code, and topic googleing, looking for a good example that will explain how to do the exact thing your example does

I am using Visual Basic, and code is not working for me.

I'm having problems with this function FindResource, as it wont find the resource.

I opened my source EXE file with a tool and i've seen that my icon names are 30003, 30004, and 30005, so i used "#30004" to find icon.

Code:
hRes = FindResource(hSrc, "#30002", RT_ICON)
It always returns 0. I tried all possibilities. I tried another EXE with Icon names 1,2,3...8. Function also failed.

Have two questions:
- What could be the cause for function failiure?
- Is there any other way to do this?