05-18-2011 06:39 AM
Agreed. I appreciate the information you gave a couple months back. I used the CreateDirectory and GetFileAttributes both from that library. My first concern was that using CreateDirectory only returns a BOOL. In my situation, I need to know if it fails because the directory already exists, or otherwise. But I was able to use GetFileAttributes to at least see if it exists and is a directory. So that moved me along. The MakeDir method has several integer return values - handy for error checking.
Again, thanks for the information you had provided above.
05-31-2011 08:58 AM
That is what GetLastError() is for. It's the standard way for handling errors in the Windows SDK world. I suggest to always check the documentation before using a function...
http://msdn.microsoft.com/en-us/library/aa363855(v=vs.85).aspx