AW: passing a commandline option results in errors

Jürgen Ladstätter info at innova-studios.com
Tue Mar 25 04:21:17 PDT 2008


Hi there chris,

you mean i should replace every single relative path to GetDataDir +
relative path?



-----Ursprüngliche Nachricht-----
Von: cje2 at york.ac.uk [mailto:cje2 at york.ac.uk] Im Auftrag von Chris Elliott
Gesendet: Dienstag, 25. März 2008 11:46
An: info at innova-studios.com; wx-users at lists.wxwidgets.org
Betreff: Re: passing a commandline option results in errors

http://biolpc22.york.ac.uk/wx/docs/html/wx/wx_wxstandardpaths.html

this provides access to a safe place to put files

chris


On 25 Mar 2008, at 10:40, Jürgen Ladstätter wrote:

> Hi there,
>
> when installing my software we register file types to be directly  
> opened
> with the application. The cmd line options look like: software.exe
> -f:[absolute path to file to be opened]
>
> When calling my app directly everything works fine. When calling it  
> with
> this option (e.g. a file is on the desktop), all my relative paths  
> (ini
> files, databases and so on) get screwed up and the software tries to  
> load
> the files on the desktop.
> The path where the .exe is, is still in the first argument but it  
> looks like
> wxApp uses the path in the -f option and then uses my relativ paths.
> Is there any function where i could set the "starting point" where  
> the app
> looks for relative paths?
>
> Kind regards, juergen
>
>
> _______________________________________________
> wx-users mailing list
> wx-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-users



More information about the wx-users mailing list