ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

trayicon example - no icon in the tray in release version

I run and (edited) the tray icon example and everyting worked fine. REplaced
the standard NI icon to my icon of choice and that worked fine too.
However when compiled the release version (cvi8) adn generated the whopping
30 MB distribution) the icon does not show up anymore in the tray (running
under XP).The icon is shows up as the application icon, though. I run out of
ideas what the heck is happaning. Anybody?

thnx

layosh


0 Kudos
Message 1 of 2
(3,127 Views)

Hi layosh,

It sounds as if the application cannot find the .ico file in the expected location.
For example, the following function's first parameter expects to find the cvi.ico in the same folder as where the executable resides:

    /* Add an icon to the taskbar System Tray */
    InstallSysTrayIcon ("cvi.ico", "CVI Tray Icon: Right-click for popup", TaskbarIconCB, &trayIconHandle);

You may simply change the first parameter to contain a relative path to the .ico file. I however would recommend placing the .ico file in the same location as where the executable resides - to make life easier. Additionally, make sure to add the .ico file to the Installation Files list when building your distribution so that it is packaged with the installer.

Hope this helps!



Message Edited by Nestor_G on 03-24-2008 10:25 PM
Nestor
0 Kudos
Message 2 of 2
(3,105 Views)