ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
03-22-2008 09:40 AM
03-24-2008 10:19 PM - edited 03-24-2008 10:25 PM
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!