Retrieve the selected file name from a file selector variable (VarID_filesel
).
Declaration | Zeolite.h |
---|---|
Implementation | Zeolite.cpp |
bool zfilesel_GetPathA(ZVAR hFileSel, ZSTR hReturnStr);
False if an error occurred, and true otherwise.
If a non-null value of the lpDefaultDir argument was given to the zfilesel_Init function, the path returned by zfile_GetPathA
will be a relative path to the default directory, if a relative path can be made (i.e. on same disk volume, etc.) Callers should check whether the returned path is relative or absolute using the zfile_IsAbsolutePath function.