How to create new folder in VC++ MFC?
C / C++ / MFC
4
Posts
4
Posters
0
Views
1
Watching
-
Use ::CreateDirectory (...) to create a folder. Or ::SHCreateDirectoryEx (...) to make a deep path of directories As for counting files, you'll have to use FindFirstFile / FindNextFile to get a list of files/directories in a directory. You can check the WIN32_FIND_DATA structures dwFileAttributes for a FILE_ATTRIBUTE_DIRECTORY flag to see if it's a directory. Good luck, Iain.
-
http://msdn2.microsoft.com/en-us/library/aa365522.aspx there you go.
-
Or you can use of dlgdirlist for get folder and file names and count.