C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Portable way of obtaining current working directory......

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Shaun Heveron
Guest





PostPosted: Wed Oct 27, 2004 1:55 pm    Post subject: Portable way of obtaining current working directory...... Reply with 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...

Thanks,

Shaun


Back to top
Victor Bazarov
Guest





PostPosted: Wed Oct 27, 2004 2:06 pm    Post subject: Re: Portable way of obtaining current working directory..... Reply with quote



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





PostPosted: Wed Oct 27, 2004 2:40 pm    Post subject: Re: Portable way of obtaining current working directory..... Reply with quote



Lieven wrote:
Quote:
Lieven wrote:


Victor Bazarov wrote:


Shaun Heveron wrote:
[...]
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

Next time you might consider replying directly to the original poster.

Back to top
Jeff Flinn
Guest





PostPosted: Wed Oct 27, 2004 2:45 pm    Post subject: Re: Portable way of obtaining current working directory..... Reply with quote


"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





PostPosted: Wed Oct 27, 2004 11:17 pm    Post subject: Re: Portable way of obtaining current working directory..... Reply with quote

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





PostPosted: Wed Oct 27, 2004 11:19 pm    Post subject: Re: Portable way of obtaining current working directory..... Reply with quote

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





PostPosted: Thu Oct 28, 2004 12:06 am    Post subject: Re: Portable way of obtaining current working directory..... Reply with quote

Victor Bazarov wrote:

Quote:
Lieven wrote:
Lieven wrote:


Victor Bazarov wrote:


Shaun Heveron wrote:
[...]
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

Next time you might consider replying directly to the original poster.

Sorry for the mistake, pretty new to newsgroups.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.