Está en la página 1de 4

make directory - C++

912,908 Members | Top Members by Rank

JOIN DANIWEB

MEMBER LOG IN
Search

Hardware & Software

Software Development

Web Development

Internet Marketing

Business Exchange

Community Center

Software Development > C++ > make directory

Ad:

C++ Discussion Thread

Unsolved

Views: 38402

Like

xfruan
Newbie Poster Offline 12 posts since Mar 2005

Mar 11th, 2005

Permalink

make directory
How can i create a directory in c++ other than writing C++ Syntax (Toggle Plain Text)
1. system ("md directory");

0
Expand Post

Similar Threads
make directory in PHP Promote a link directory in Promotion and Marketing Plans Directory in Promotion and Marketing Plans how to make sure directory is created in Perl Need help with directory displayer code in PHP

Ads by Google

Source Code Review Tool


Source Code Reviews Without the Hassles. Download Free Trial Now! www2.SmartBear.com/30_Day_Trial

Mar 11th, 2005

Permalink

Re: make directory


http://www.daniweb.com/software-development/cpp/threads/19976[16/08/2011 10:12:11 a.m.]

make directory - C++

Tight_Coder_Ex
Posting Whiz in Training Offline 215 posts since Feb 2005

Linux C++ Syntax (Toggle Plain Text)


1. #include <sys/stat.h> 2. 3. mkdir (const char *path, mode_t mode);

in this case mode = O_CREAT. Function returns an int. Lookup "man mkdir", if memory serves me correctly for more details. Windows C++ Syntax (Toggle Plain Text)
1. #include <windows.h> 2. 3. CreateDirectory (char *DirName, SECURITY_ATTRIBUTES Attribs);

If the function succeeds returns non-zero otherwise NULL.

xfruan
Newbie Poster Offline 12 posts since Mar 2005

Mar 14th, 2005

Permalink

Re: make directory


Problem is when i tried both ways in Visual C++, neither of the methods worked, in both cases, the compiler told me there is no such an include file. Instead, i found a function "mkdir (const char*)" in the include file called "direct.h".

Mar 14th, 2005

Permalink

Re: make directory


Tight_Coder_Ex
Posting Whiz in Training Offline 215 posts since Feb 2005

If you not too concerned about the bells and whistles that go along with 95/98/XP then mkdir will work just fine. If you are creating projects in VC++ 6.0 with the wizzard and "stdafx.h" is already included you don't have to worry about <windows.h> because it's already in there.

http://www.daniweb.com/software-development/cpp/threads/19976[16/08/2011 10:12:11 a.m.]

make directory - C++

This thread is more than three months old


No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.

Message:

0
Like

Post Reply to this Thread

Previous Thread in C++ Forum Timeline: Next Thread in C++ Forum Timeline:

Novice wants to improve skills

Passing Arrays to function in Visual C++

Tag Cloud for C++


2d algorithm api argument array arrays beginner binary boost

c++

calculator char class classes code code-tags console conversion convert count counting cpp data dev

dll double error file files for-loop fstream function functions game getline gimmetehcodez gui help! hexadecimal homework inheritance input int integer lazy linked-list linux list

loop loops matrix member memory mfc multiple number numbers object opengl output overloading pointer pointers problem problem-programs problems program programmer

programmers programming project qt random read recursion recursive reference sdl socket sorting stack string strings struct structure structures student tags-fail template text

variable vc++ vector vectors video virtual visual visual-studio win32 windows

About Us | Contact Us | Advertise | Acceptable Use Policy


Forum Index | Build Custom RSS Feed

Like

Send

1269 likes. Sign Up to see what your friends like.

Follow us on

2010 DaniWeb LLC

http://www.daniweb.com/software-development/cpp/threads/19976[16/08/2011 10:12:11 a.m.]

make directory - C++

http://www.daniweb.com/software-development/cpp/threads/19976[16/08/2011 10:12:11 a.m.]

También podría gustarte