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 » TopWindow&PopUp, TrayIcon » Double-click a file and open the App
Re: Double-click a file and open the App [message #21037 is a reply to message #21029] Tue, 28 April 2009 03:47 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hmmm, not sure why it wasn't working before but for reference, in WIN32 at least (Vista 64), the following code works

GUI_APP_MAIN
{
	const Vector<String>& cmdline = CommandLine();
	int argc = cmdline.GetCount();

	OpenWind prog;

	DUMP(argc);
	
	if(argc)
	{
		DUMP(cmdline[0]);
		prog.OpenS(cmdline[0]);
	}

	prog.Zoomable().Sizeable().Run();
}


Thanks.
 
Read Message
Read Message
Read Message
Previous Topic: starting program hidden and putting it in start up
Next Topic: [FIX] resizing eats memory
Goto Forum:
  


Current Time: Wed May 15 06:59:33 CEST 2024

Total time taken to generate the page: 0.03205 seconds