Quote:
Originally Posted by abcdark View Post
I didnt use the sample code. I copied the function onbuttonchangeicon() and modified the variables and used it in a console program. It succesfully changes icons for certain executables but not all. Anyways, the problem that bugs me is that if you copy the exe file to another location then the new icon is not visible. The old icon comes back. and if u again copy back the file into the original folder where it was initially, then it again regains the icon. So icon is not "locked" to the exe. Wht to do ??
There are multiple size icons in an exe and the code changes only one and so when you copy, you may be seeing different icon size. It is locked into the exe and you can verify that with Resource Hacker as well