U++ framework
Do not panic. Ask here before giving up.

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: Fri Sep 11 19:58:27 GMT+2 2026

Total time taken to generate the page: 0.00744 seconds