LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to activate a panel in console app?

Hi all!

I'm pretty sure it's a little stupid thing, but I didn't found out:

I'm looking for some ugly bugs in my app. To get some information while running the app in release mode, I build it as a console app and write debug infos to the console window. So far, so good. My problem is now,  if I bring any other app to front by clicking on the task bar, the panel of my app goes to the background, and I can't bring it to the foreground again, because clicking the task bar icon brings only the console window to front. The panel stays in the background.

So, how can I bring the panel to front by clicking the task bar icon?

 

Best,

Thomas

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

Don't use console, it has nasty effects in the global Windows user interface. Write to a file instead. It's also easier to redirect, analyze, etc. I usually write errors to stderr, and use an freopen to redirect it somewhere to a file.

0 Kudos
Message 2 of 2
(3,313 Views)