Page 1 of 1

Icon in RC file

Posted: Sun Feb 02, 2025 1:17 pm
by serge_girard
Hello,

I have some strange behaviour. In my RC file I have this:

Code: Select all

FAVICON    ICON    OPTIOS.ICO 
In my folder the ICON is from a previous project and I can't get the ICO right. When I make a copy the ICON is OK.
It's a small app to load data into database and there is no FORM.
In order to run I made a shortcut on my desktop. I attached manually the right ICON.

What is going on, someone has an idea or tip?

Serge

Re: Icon in RC file

Posted: Tue Feb 04, 2025 8:51 am
by Pcmodula
Good morning Serge, your problem seems to be caused by the operating system, basically the icon cache goes crazy or is corrupted, in fact you just need to move the executable to another folder and magically the icon is correct.
On the Internet you can find some solutions but it is not always said that you can solve it with the simple cleaning of the cache.
Good luck!

PcModula.

Re: Icon in RC file

Posted: Tue Feb 04, 2025 9:10 am
by serge_girard
Thanks PcModula,

You may be right. This morning I cold-started my PC and the ICON now is correct!

Serge