[Kde-bindings] playground/bindings/kimono

Richard Dale Richard_Dale at tipitina.demon.co.uk
Thu Dec 8 19:59:06 UTC 2005


On Thursday 08 December 2005 07:59, Marcus wrote:
> On Wednesday 07 December 2005 12:52 pm, Richard Dale wrote:
> > Another issue is adding the name of the executable to the argv string[]
> > array passed to the QApplication constructor. I've been searching today
> > for some info on how to get the program name, but haven't found anything.
> > All my books about C# are back in the UK, so I can't look it up. If you
> > can find anything about it, or maybe getting the name of the class with
> > Main() in it if the executable name isn't available.
>
> System.Environment.GetCommandLineArgs().
Thanks, that works fine, as does 
System.Reflection.Assembly.GetExecutingAssembly().Location;

Although both return the full path, but that's maybe a feature rather than a 
bug.




More information about the Kde-bindings mailing list