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 |
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.
|
|
|
Goto Forum:
Current Time: Wed May 15 06:59:33 CEST 2024
Total time taken to generate the page: 0.03205 seconds
|