What about commenting this line out and see what happens? :)
>When I compile class lib SYSTRAY.VCX I get the following error:
>
>
>#define NIF_STATE 0x0000008
>Error in line 440 of systray.removeiconfromsystray (record 4):
>Constant is already created with #DEFINE
>
>
>When I look in the code of the method .removeiconfromsystray there is no line 440 (the method has about 60 lines). Also I see that the NIF_STATE in this method is defined but never used.
>
>What am I missing? How to resolve this error?
>
>Thank you in advance.
--sb--