LoadImage works for the icon, which is inside the program. But I really need to use the resources if I want to have an iconic exe file.

Thank you for your help.