HELP: Directory question

H

Hamish Dean

Thisw may be off topic. Sorry if it is.

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.

Hamish Dean, PhD
ShapeShifter Technology Ltd
www.shapeshifter.net.nz
+ 64 3 377 3140
(e-mail address removed)
 
A

Artie Gold

Hamish said:
Thisw may be off topic. Sorry if it is.

Alas, it is.
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.

This can only be done (if it can be done at all) in a (sometimes
*very*) platform specific way.

HTH,
--ag
 
J

Jack Klein

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top