I am trying to make a wrapper class that contains the GetLogicalDriveStrings() function. Is there a way to
1) Get this buffer copyed into a CString
2) Use the CString in the same manner that the buffer is being used.
The problem i am running into is the format of the buff string that is returned from
GetLogicalDriveStrings(). It has the terminating character seperating the
Drive Letters.
A:/'\0'C:/'\0'...
This seems to be doing something to the functionality of the
CString.
Here is the code.
TCHAR * buff = NULL;
buff = new TCHAR[nBuffSize];
GetLogicalDriveStrings(nBuffSize,buff);
for(DWORD i = 0; i < nBuffSize; i += 4){
RecurseDirs(&buff[i]);
}
Any better suggestions on how to implement this would be
great also if there is a better way.