how do i open hidden folder in my program ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi

i trying to open some new folder in my program , i write this function below
, but i dont know how to make the folder "dataFile" to be hidden.

bool CPoliceDBApp::changeDirectory()
{
char buffer[MAXSIZE];

if(!_getcwd(buffer,MAXSIZE)) //get now active directory
return false;

CString path=buffer;

path+="\\dataFile"; //declare new directory path

_mkdir(path); //build new folder in path

if(_chdir(path)) //change active directory
return false;
return true;
}
 
YANSHOF said:
hi

i trying to open some new folder in my program , i write this
function below , but i dont know how to make the folder "dataFile" to
be hidden.

See SetFileAttributes() Win32 API function. You want to set
FILE_ATTRIBUTE_HIDDEN.

-cd
 
Back
Top