TCHAR buffer[MAX_PATH] = {0}; DWORD dwVal = ::GetLogicalDriveStrings(MAX_PATH,buffer); CString str; for(int i = 0; i < dwVal; i += 4) { CString str; str.Format(_T("%c:\\"), buffer[i]); }
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-11-10 13:47:30
TCHAR buffer[MAX_PATH] = {0}; DWORD dwVal = ::GetLogicalDriveStrings(MAX_PATH,buffer); CString str; for(int i = 0; i < dwVal; i += 4) { CString str; str.Format(_T("%c:\\"), buffer[i]); }
版权声明:本文为博主原创文章,未经博主允许不得转载。