Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LaunchExecutableEx hides GUI

Hi,

I'm writing a GUI which calls a text mode program (DOS), using LaunchExecutableEx
command. However, the dos window rises on top of the GUI window after printf commands.

I want the GUI to be active and at front all time.

I tried to launch the LaunchExecutableEx command with attributes of hide, or inactive, but non of them helped.

THANKS!

Hagruzini

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

MosheHagruzini:

 

Even if the stdio window is hidden, the next printf statement causes it to be displayed.

 

You could try using SetStdioWindowPosition() to set the stdio window position offscreen.  See my earlier post here:

http://forums.ni.com/t5/LabWindows-CVI/How-to-Close-Standard-IO-Window/m-p/978102#M42849

 

If, after doing that, you have a problem with the focus between windows, take a look at this post.

http://forums.ni.com/t5/LabWindows-CVI/Focus-between-two-applications/m-p/1016762

 

Message 2 of 2
(3,148 Views)