Making the compiled source code run in the background

plne

Making the compiled source code run in the background

by plne » Sat, 07 Nov 2009 07:41:54

Hello everyone, Can I request some assistance here regarding Visual C++ I am new to the language.

Is there any way I can turn off the cmd window when my compiled source code is running The source code is compiled as an .exe file. The program doesnt require any input or output any result to the user and so, the command window is unneccessary.

The function of the compiled source code is to load an image file to my hardware and the changes to the image file is controlled by Labview. So, Labview will call the compiled .exe program and the program will just run without any input from the user.

As I need to do many iterations, the command window is always popping out without providing any information. So I am wondering if there is any way I can turn off the command window or perhaps, make the .exe program runs in the background

Thanks. Let me know if more information is needed.


Peter Ritchi

Making the compiled source code run in the background

by Peter Ritchi » Mon, 09 Nov 2009 08:42:55

If you link your application as a console application (Project Properties/configuration Properties/Linker/Output/Subsystem) then Windows will create the console for you every time you run your application. If you don't have a SubSystem set for the linker, it will default to Console.

Brian Krame

Making the compiled source code run in the background

by Brian Krame » Wed, 11 Nov 2009 09:43:56

One option is to prepend start when you run off the command line.

start mycmdhoggingexe.exe arguments