On Fri, 26 Sep 2003 15:22:01 +1200, "Hamish Dean" <h.****@xtra.co.nz>
wrote in comp.lang.c++:
Thisw may be off topic. Sorry if it is.
It is. C++ does not define or support directories, which are a
feature of operating systems and not any particular language.
I've got an application, and it gets installed to a particular directory
(they choose) on a users computer. How do I find out what this directory is
at runtime? I want them to install a license file, and then my application
check the values in the license file at runtime. Problem is, the directory
could be different for each user.
Compiler implementations for systems that have directory structures
usually provide some non-standard extensions to do this sort of thing.
But it is different for various compiler/OS combinations and not
discussed here exactly because it is not part of the language, and
this is a language group.
You need to ask in a group that supports your particular compiler/OS
combination. I can't be specific, because you did not identify your
platform.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
ftp://snurse-l.org/pub/acllc-c++/faq