Click to See Complete Forum and Search --> : Changing an Icon into an executable


impulse
June 23rd, 1999, 06:18 AM
I want to change the icon of an executable...
without compiling it.
any help welcome :)

Impulse

Fabi Pantera
June 23rd, 1999, 06:32 AM
if i well understood, you want to change it run-time. Ok. That's the code :
[
HICON icon = AfxGetApp()->LoadIcon(IDI_YOUR_ICON);
AfxGetMainWnd()->SetIcon(icon);
]
Let me know if it works fine to you
Regards,
faby

impulse
June 23rd, 1999, 06:52 AM
No, that's not that...
i want to change the icon a another executable than mine...
I want to change any executable, even if it's not running...

but thanks for awsering me