| View previous topic :: View next topic |
| Author |
Message |
Shaun Heveron Guest
|
Posted: Wed Oct 27, 2004 1:55 pm Post subject: Portable way of obtaining current working directory...... |
|
|
Hi,
I'm working on a portable ANSI C++ application designed to compile and
execute under Windows and LINUX/UNIX.
Is there a portable way of obtaining the current working directory? Sorry,
if I'm being stupid...
Thanks,
Shaun
|
|
| Back to top |
|
 |
Victor Bazarov Guest
|
Posted: Wed Oct 27, 2004 2:06 pm Post subject: Re: Portable way of obtaining current working directory..... |
|
|
Shaun Heveron wrote:
| Quote: | I'm working on a portable ANSI C++ application designed to compile and
execute under Windows and LINUX/UNIX.
Is there a portable way of obtaining the current working directory? Sorry,
if I'm being stupid...
|
You're not being stupid, you're just being in the wrong newsgroup.
I'd recommend asking in both Windows (comp.os.ms-windows.programmer)
and Linux (comp.os.linux.development.apps) newsgroups. If you care
about UNIX, you'd have to extend your search to the appropriate UNIX
newsgroup too.
The trouble is, C++ doesn't have any way of obtaining "current" or
"working" directory because it doesn't have the concept of 'a directory'.
V
|
|
| Back to top |
|
 |
Victor Bazarov Guest
|
Posted: Wed Oct 27, 2004 2:40 pm Post subject: Re: Portable way of obtaining current working directory..... |
|
|
Lieven wrote:
Next time you might consider replying directly to the original poster.
|
|
| Back to top |
|
 |
Jeff Flinn Guest
|
Posted: Wed Oct 27, 2004 2:45 pm Post subject: Re: Portable way of obtaining current working directory..... |
|
|
"Shaun Heveron" <fred (AT) fred (DOT) com> wrote
| Quote: | Hi,
I'm working on a portable ANSI C++ application designed to compile and
execute under Windows and LINUX/UNIX.
Is there a portable way of obtaining the current working directory? Sorry,
if I'm being stupid...
|
See http://www.boost.org/libs/filesystem/doc/index.htm which supports
windows and POSIX file systems in a semi-portable fashion.
Jeff F
|
|
| Back to top |
|
 |
Lieven Guest
|
Posted: Wed Oct 27, 2004 11:17 pm Post subject: Re: Portable way of obtaining current working directory..... |
|
|
Victor Bazarov wrote:
| Quote: | Shaun Heveron wrote:
I'm working on a portable ANSI C++ application designed to compile and
execute under Windows and LINUX/UNIX.
Is there a portable way of obtaining the current working directory?
Sorry, if I'm being stupid...
You're not being stupid, you're just being in the wrong newsgroup.
I'd recommend asking in both Windows (comp.os.ms-windows.programmer)
and Linux (comp.os.linux.development.apps) newsgroups. If you care
about UNIX, you'd have to extend your search to the appropriate UNIX
newsgroup too.
The trouble is, C++ doesn't have any way of obtaining "current" or
"working" directory because it doesn't have the concept of 'a directory'.
V
|
Take a look here:
http://tinf2.vub.ac.be/~dvermeir/software/dv/index.html
|
|
| Back to top |
|
 |
Lieven Guest
|
Posted: Wed Oct 27, 2004 11:19 pm Post subject: Re: Portable way of obtaining current working directory..... |
|
|
Lieven wrote:
| Quote: | Victor Bazarov wrote:
Shaun Heveron wrote:
I'm working on a portable ANSI C++ application designed to compile and
execute under Windows and LINUX/UNIX.
Is there a portable way of obtaining the current working directory?
Sorry, if I'm being stupid...
You're not being stupid, you're just being in the wrong newsgroup.
I'd recommend asking in both Windows (comp.os.ms-windows.programmer)
and Linux (comp.os.linux.development.apps) newsgroups. If you care
about UNIX, you'd have to extend your search to the appropriate UNIX
newsgroup too.
The trouble is, C++ doesn't have any way of obtaining "current" or
"working" directory because it doesn't have the concept of 'a directory'.
V
Take a look here:
http://tinf2.vub.ac.be/~dvermeir/software/dv/index.html
|
And especially this will interest you:
http://tinf2.vub.ac.be/~dvermeir/software/dv/dvutil/html/classDv_1_1Util_1_1Directory.html
|
|
| Back to top |
|
 |
Lieven Guest
|
Posted: Thu Oct 28, 2004 12:06 am Post subject: Re: Portable way of obtaining current working directory..... |
|
|
Victor Bazarov wrote:
Sorry for the mistake, pretty new to newsgroups.
|
|
| Back to top |
|
 |
|