on my windows computer, wxImage::LoadFile and wxFile::Exists find and load a file only by its filename, without a path. i cannot find this file anywhere, neither in my .exe dir nor the user´s documents folder. also, the windows file file search cannot find it, so where is it? what is the default directory for these functions on windows?
the "found" file name is "von Bild eins.jpg_back.png" and there is a "eins.jpg", so do these function crop the file name so it works?
wxImage::LoadFile and wxFile::Exists default dir
- doublemax@work
- Super wx Problem Solver
- Posts: 474
- Joined: Wed Jul 29, 2020 6:06 pm
- Location: NRW, Germany
Re: wxImage::LoadFile and wxFile::Exists default dir
It's the "current working directory", which is the program directory at start, but it can change through user actions. That's why it's never a good idea to depend on it when loading anything. Always build an absolute path, e.g. based on wxStandardPathswhat is the default directory for these functions on windows?
I doubt that, i'd guess any pathnames are passed through to the OS file system functions unchanged . There must be something else going on.the "found" file name is "von Bild eins.jpg_back.png" and there is a "eins.jpg", so do these function crop the file name so it works?