How would you program a C/C++ application that could run without opening a window or console?
If you are using MSVC or Visual Studio just use the new Project Wizard and select the Console Application.