From: Richard Heathfield on
Owner wrote:
> On Thu, 10 Jun 2010 18:37:22 +0100, Richard Heathfield wrote:
>
>
>> Owner wrote:
>>> Can anyone recommend a web site or a book that concentrating
>>> on stuffs like creating directories, files etc with win32
>>> api in console?
>>>
>>> I got the book "programming windows 5th ed." but it doesn't
>>> talk about creating directories.
>>>
>>> All I want to do with win32 console is manipulate directories
>>> and files.
>> What's wrong with _mkdir()?
>
> That's the stuff I was lookin for. Now is there Any book or
> tutorial includes topic about _mkdir?


What's to tute?

char mynewdirectory[] = "c:\\this\\that\\theother";
if(_mkdir(mynewdirectory) == 0)
{
puts("Whoopee!");
}
else
{
fputs("Oh.\n", stderr);
}

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
Sig line vacant - apply within
From: Owner on
On Thu, 10 Jun 2010 22:41:26 +0100, Richard Heathfield wrote:

> Owner wrote:
>> On Thu, 10 Jun 2010 18:37:22 +0100, Richard Heathfield wrote:
>>
>>
>>> Owner wrote:
>>>> Can anyone recommend a web site or a book that concentrating
>>>> on stuffs like creating directories, files etc with win32
>>>> api in console?
>>>>
>>>> I got the book "programming windows 5th ed." but it doesn't
>>>> talk about creating directories.
>>>>
>>>> All I want to do with win32 console is manipulate directories
>>>> and files.
>>> What's wrong with _mkdir()?
>>
>> That's the stuff I was lookin for. Now is there Any book or
>> tutorial includes topic about _mkdir?
>
>
> What's to tute?
>
> char mynewdirectory[] = "c:\\this\\that\\theother";
> if(_mkdir(mynewdirectory) == 0)
> {
> puts("Whoopee!");
> }
> else
> {
> fputs("Oh.\n", stderr);
> }

I just learned that _mkdir is part of C runtime library.
(this is the first time I heard of)

is there a book dedicated for CRT?



From: Owner on
On Thu, 10 Jun 2010 22:41:26 +0100, Richard Heathfield wrote:

> Owner wrote:
>> On Thu, 10 Jun 2010 18:37:22 +0100, Richard Heathfield wrote:
>>
>>
>>> Owner wrote:
>>>> Can anyone recommend a web site or a book that concentrating
>>>> on stuffs like creating directories, files etc with win32
>>>> api in console?
>>>>
>>>> I got the book "programming windows 5th ed." but it doesn't
>>>> talk about creating directories.
>>>>
>>>> All I want to do with win32 console is manipulate directories
>>>> and files.
>>> What's wrong with _mkdir()?
>>
>> That's the stuff I was lookin for. Now is there Any book or
>> tutorial includes topic about _mkdir?
>
>
> What's to tute?
>
> char mynewdirectory[] = "c:\\this\\that\\theother";
> if(_mkdir(mynewdirectory) == 0)
> {
> puts("Whoopee!");
> }
> else
> {
> fputs("Oh.\n", stderr);
> }

Another question. Where did you learn existence of _mkdir?
has _mkdir been existed since dos? I'm trying to
find out which books I should look for where from.
From: bart.c on

"Owner" <Owner(a)Owner-PC.com> wrote in message
news:pan.2010.06.10.22.53.11.492000(a)Owner-PC.com...
> On Thu, 10 Jun 2010 22:41:26 +0100, Richard Heathfield wrote:

>> if(_mkdir(mynewdirectory) == 0)

> I just learned that _mkdir is part of C runtime library.
> (this is the first time I heard of)
>
> is there a book dedicated for CRT?

If you want to use win32, the function is called CreateDirectory. All these
functions are documented in msdn.microsoft.com (easiest to get there using
google msdn createdirectory). C runtime functions (at least, as implemented
by MS) are described in there too.

You can choose to use either C or win32 file functions, the latter however
tend to be more complex than their C counterparts. Win32 might be necessary
though if you want to avoid C libraries for any reason.

--
Bartc

From: Owner on
On Fri, 11 Jun 2010 00:12:32 +0100, bart.c wrote:

>
> "Owner" <Owner(a)Owner-PC.com> wrote in message
> news:pan.2010.06.10.22.53.11.492000(a)Owner-PC.com...
>> On Thu, 10 Jun 2010 22:41:26 +0100, Richard Heathfield wrote:
>
>>> if(_mkdir(mynewdirectory) == 0)
>
>> I just learned that _mkdir is part of C runtime library.
>> (this is the first time I heard of)
>>
>> is there a book dedicated for CRT?
>
> If you want to use win32, the function is called CreateDirectory. All these
> functions are documented in msdn.microsoft.com (easiest to get there using
> google msdn createdirectory). C runtime functions (at least, as implemented
> by MS) are described in there too.
>
> You can choose to use either C or win32 file functions, the latter however
> tend to be more complex than their C counterparts. Win32 might be necessary
> though if you want to avoid C libraries for any reason.

So, is msdn the only source of information?