Advertisement

How do I create a new folder in MFC?

Started by May 30, 2001 09:54 AM
2 comments, last by Caijin 23 years, 8 months ago
After the user tells it to, I need my MFC program to create a new folder in the specified directory how can I do this? I cannot find any reference to creating a new folder in the msdn. Thanks
How about trying to use the Standard Run-Time Library function:
e.g.
mkdir("C:\\abc.txt");

... gotta check MSDN... ''coz long time not playing with programming.
"after many years of singularity, i'm still searching on the event horizon"
Advertisement
Thanks for the reply but it doesnt seem to work,

if i put :: before it i get the message that its not a member of global namespace rather than straight up undeclared identifier. At least now ive got something i can read up on so I''ll try working around that.

Thanks
Never mind Ive found a function that will do it.
CreateDirectory(). I knew there would be a simple function fo this.

Thanks DerekSaw, I was looking in the msdn for folders but you made me look for Directory. Cheers

This topic is closed to new replies.

Advertisement