Hi,

sorry for my english, I'm Italian...  8)
I tried to compile Iczelion's tutorial #23: Tray Icon, and this work OK, but when I go over the icon with mouse cursor, the application name isn't display correctly. Maybe a problem with "w.lstrcpy(&note.szTip,AppName);"?
Anyone can fix this?

Thank's all...
Posted on 2005-10-15 15:52:53 by Andrea Lanza
Hi Andrea,

yes, there is a litle bug in this tut

replace


w.lstrcpy(&note.szTip, AppName);


with


mov(AppName, eax);
w.lstrcpy(&note.szTip, );
Posted on 2005-10-16 16:43:33 by arlequin
Hi all,

many thank's arlequin, I have made this changes and now the code work perfectly!

:D
Posted on 2005-10-21 16:29:03 by Andrea Lanza

Hi Andrea,

yes, there is a litle bug in this tut

replace


w.lstrcpy(&note.szTip, AppName);


with


mov(AppName, eax);
w.lstrcpy(&note.szTip, );



BTW, for future reference, an easier way to fix this is as follows:


w.lstrcpy( &note.szTip, val AppName );


The second lstrcpy parameter is passed by reference (VAR, untyped) so it takes the address of the second argument. Putting the VAL in front of it tells HLA to use its value, not its address. This saves having to load the pointer in EAX and pass the address in EAX.
Cheers,
Randy Hyde
Posted on 2005-11-03 16:22:01 by rhyde