>Here is the code. Just a .prg file with systray.vcx included in the file. With this code, would systray.vcx have to be located on the the target machine, or is it compiled in at build time?
>
>oSystemTray = NEWOBJECT('systray', 'c:\mailarchive\classes\systray.vcx')
>oSystemTray.IconFile = " c:\mailarchive\icons\resendl.ico"
>oSystemTray.TipText = "This is a test"
>oSystemTray.MenuText= "c:\mailarchive\menus\systraymenu.mpr"
>oSystemTray.MenuTextIsMpr = .T.
>oSystemTray.AddIconToSysTray()
>READ EVENTS
VCX files are usually included in the executable. Check whether it is listed in the project, and marked as "included".
Of course, just for troubleshooting purposes, you can also copy it into the target machine, to see whether this is the problem, or not. For this purpose, you have to copy both systray.vcx and systray.vct. However, it is more common to just include most files in the executable.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)