Hello,
a quiet simple thing, but i don't know how to search the dcoumentation for this: I need the name of the folder, where my application is started from. How to get it??
Best,
Frank
How to applications-path Topic is solved
-
- Earned some good credits
- Posts: 147
- Joined: Mon Sep 01, 2014 10:14 am
Re: How to applications-path
http://docs.wxwidgets.org/trunk/classwx ... 0cfbb35c6b
Gives you the complete path for the executable, you can extract the path from there.
Make sure to use the global instance with wxStandardPaths::Get(), don't create a new instance of it.
Gives you the complete path for the executable, you can extract the path from there.
Make sure to use the global instance with wxStandardPaths::Get(), don't create a new instance of it.
Use the source, Luke!
-
- Earned some good credits
- Posts: 147
- Joined: Mon Sep 01, 2014 10:14 am
Re: How to applications-path
Thank you!
-
- Earned some good credits
- Posts: 147
- Joined: Mon Sep 01, 2014 10:14 am
Re: How to applications-path
I Searched some very old codes because i remembered that there was another solution. There i found this:
Code: Select all
IMPLEMENT_APP(Projekt1DlgApp)
bool Projekt1DlgApp::OnInit() {
wxString filename = wxString(argv[0]);
...
}