LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a directory within CVI?

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.

0 Kudos
Message 11 of 12
(945 Views)

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

0 Kudos
Message 12 of 12
(926 Views)