10-08-2009 07:10 AM
10-08-2009 07:47 AM
bw:
I think this is a problem with the LabView executable, not the LaunchExecutableEx function call. I'm looking at a similar problem try to launch CVI executables minimized. It looks like the apps don't catch the minimize message. CVI and LabView might be built with the same engine.
Another question is posted here: http://forums.ni.com/ni/board/message?board.id=180&thread.id=43247.
10-08-2009 02:29 PM
bw:
I just posted a CVI project to the other thread that lets you try to launch a program minimized, or minimize or hide it later. You can try using it to launch your LabView app as well. After you build the project per the ReadMe file, just right-click on the app select listbox, and browse to your LabView app.
See the attachment here: http://forums.ni.com/ni/board/message?board.id=180&message.id=43643#M43643
It seems like CVI-built apps (and I'm guessing LabView apps) launch multiple hidden windows before they display the main user interface window, and that the window getting the LE_HIDE message is not the user interface (your front panel). It may be that the best you can do is launch the LabView app, and then hide it after a brief delay.