VC++中,新建一个文件夹如何实现?

解决方案 »

  1.   

    BOOL MakeSureDirectoryPathExists(IN LPSTR DirPath);
    Header: Declared in imagehlp.h.
    Import Library: Use imagehlp.lib.
      

  2.   

    给你一个SDK的方法:
    BOOL CreateDirectory(
      LPCTSTR lpPathName,
      LPSECURITY_ATTRIBUTES lpSecurityAttributes
    );::CreateDirectory("c:\\mydirect", NULL);
    到你的C盘看看吧
      

  3.   

    BOOL CreateDirectory(
      LPCTSTR lpPathName,
      LPSECURITY_ATTRIBUTES lpSecurityAttributes
    );