Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » starting console app hidden
starting console app hidden [message #23093] Thu, 17 September 2009 02:48 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello all

i want to start the console app. hidden so that console window wont appear

Thx in advance
Re: starting console app hidden [message #23095 is a reply to message #23093] Thu, 17 September 2009 07:06 Go to previous messageGo to next message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
Hi, i think it's not possible to hide console because you're not controlling. You may create a gui application without any window and access console with SysExec(it should not show any console)
or you may create platform specific solution i.e. services (Windows) or daemons(Linux) depending on what are you doing.
Re: starting console app hidden [message #23100 is a reply to message #23093] Thu, 17 September 2009 09:13 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Or you can use the LaunchCommand function in Bazaar/SysInfo package Smile

String LaunchCommand(const char *cmd)

where cmd is just the command line string.

Do you need to get the output of the console program ?

Best regards
Koldo


Best regards
IƱaki
Re: starting console app hidden [message #23297 is a reply to message #23093] Wed, 07 October 2009 18:30 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
On Windows:
	HWND wnd = GetConsoleWindow();
	if (wnd != NULL)
		ShowWindow(wnd, SW_HIDE);
Previous Topic: U++ program whose filename has Chinese word leaves logs after exit
Next Topic: Problem with UPP_HEAP and multithread
Goto Forum:
  


Current Time: Fri Apr 19 14:32:59 CEST 2024

Total time taken to generate the page: 0.02492 seconds