From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Program icons in the windows start bar.

Hallo

First of all: I build my CVI-application with MS-VC++.

Now the problems.

1)
If my program passes "InitCVIRTE", it generates an icon in the windows start
bar. On right click on this icon I can close my application. It seems that
the program jumps to the end of the "WinMain" function?. But I need to make
some cleanup functions. Is there any thing like "atexit" to control this way
to close my application?

2)
Some Panels generate an icon in the start bar when calling "DisplayPanel" ,
and some other do not. What is the systematic?

Thanks

Babak Pourat
0 Kudos
Message 1 of 2
(2,606 Views)
Read the ... manual:

> 1)
> If my program passes "InitCVIRTE", it generates an icon in the
> windows start bar. On right click on this icon I can close my
> application. It seems that the program jumps to the end of the
> "WinMain" function?. But I need to make some cleanup functions. Is
> there any thing like "atexit" to control this way to close my
> application?

The solution I found:
InstallMainCallback().

>
> 2)
> Some Panels generate an icon in the start bar when calling
> "DisplayPanel" , and some other do not. What is the systematic?
>

Its a panel attribute.


nevertheless thanks

Babak
0 Kudos
Message 2 of 2
(2,606 Views)