What function call do you use to get the application's directory?
I am using fopen() to open a configuration file. When I specify just the file name (e.g. "config.txt") it can't find the file even though it is in the same directory as the application. It works when I specify the full path of the file, but I've had to hard code the path name because Windows CE does not support the GetCurrentDirectory() function. Is there a way of programatically getting the application's directory path?
Windows CE doesn't really have the concept of a current directory, so there isn't a direct call to get the directory.
You can, however, get the full path of the currently running executable using GetModuleFileName(). This will include the path, you just need to trim off the executable name.
----------------- Chris Tacke, eMVP Applied Data Support