passing a commandline option results in errors

Jürgen Ladstätter info at innova-studios.com
Tue Mar 25 03:40:36 PDT 2008


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




More information about the wx-users mailing list