-
June 2nd, 2009, 06:56 AM
#1
Directory variables
Is there any variables in C++ like working_directory or program_directory?
-
June 2nd, 2009, 07:20 AM
#2
Re: Directory variables
No. Do you need this under Windows or Linux? For Windows look for GetWorkingDirectory() and GetModuleFileName().
-
June 2nd, 2009, 07:28 AM
#3
Re: Directory variables
Well, actually I just want to make a string that contains the path where the executable is located.
-
June 3rd, 2009, 12:40 PM
#4
Re: Directory variables
The first command line argument passed to main is the path to the executable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|