
ICON fails to load sometimes
I have an NT Service in VC 6.0 sp5. It places an ICON in the system tray.
intermittentlythe ICON fails to load. This function returns NULL :
HANDLE hIcon = LoadImage(this->m_hInstance, MAKEINTRESOURCE
(iconID),IMAGE_ICON,0,0,LR_DEFAULTSIZE);
when I call GetLAstError - it says resource 204 not found (where 204 is the
variable iconID).
Any Ideas how to solve this?