Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to create a new folder compresed?? Pin
ThatsAlok25-Aug-08 1:50
ThatsAlok25-Aug-08 1:50 
GeneralRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 2:46
bosfan25-Aug-08 2:46 
AnswerRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 3:06
Perspx25-Aug-08 3:06 
GeneralRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 4:55
bosfan25-Aug-08 4:55 
AnswerRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 5:23
Perspx25-Aug-08 5:23 
GeneralRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 5:44
bosfan25-Aug-08 5:44 
QuestionRe: How to create a new folder compresed?? Pin
Perspx25-Aug-08 5:52
Perspx25-Aug-08 5:52 
AnswerRe: How to create a new folder compresed?? Pin
bosfan25-Aug-08 21:01
bosfan25-Aug-08 21:01 
Hi,
thank you very much for your time to help me, here is a code how i open a folder:

HANDLE hFile = NULL;
DWORD dwErr = NULL;
if(INVALID_HANDLE_VALUE == (hFile = CreateFile(
						  myfolder, // path to folder!!
						  GENERIC_READ, 
						  FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
						  NULL,
						  OPEN_EXISTING,
						  FILE_FLAG_BACKUP_SEMANTICS,
						  NULL)))
{
	dwErr = GetLastError();
}


and i have a valid handle, but can't access to folder!!
Next thing that make me confuse is that i can write files to folder after creation,
but can't use DeviceIoControl() --> become Errorvalue 5(access denied)!!
Just for testing i use fopen() to try to write to the new created folder and this is ok!

with best regards
termal
GeneralRe: How to create a new folder compresed?? Pin
bosfan26-Aug-08 1:17
bosfan26-Aug-08 1:17 
QuestionSHChangeNotifyRegister Pin
NewVC++24-Aug-08 21:25
NewVC++24-Aug-08 21:25 
AnswerRe: SHChangeNotifyRegister Pin
_AnsHUMAN_ 24-Aug-08 21:40
_AnsHUMAN_ 24-Aug-08 21:40 
GeneralRe: SHChangeNotifyRegister Pin
NewVC++24-Aug-08 21:46
NewVC++24-Aug-08 21:46 
GeneralRe: SHChangeNotifyRegister - > Can't search myself Pin
_AnsHUMAN_ 24-Aug-08 21:52
_AnsHUMAN_ 24-Aug-08 21:52 
QuestionHow to convert string to array of bytes? Pin
kapardhi24-Aug-08 21:07
kapardhi24-Aug-08 21:07 
GeneralRepost - please ignore. Pin
CPallini24-Aug-08 21:14
mveCPallini24-Aug-08 21:14 
GeneralRe: Repost - please ignore. Pin
kapardhi24-Aug-08 21:32
kapardhi24-Aug-08 21:32 
GeneralRe: Repost - please ignore. Pin
CPallini24-Aug-08 21:44
mveCPallini24-Aug-08 21:44 
GeneralRe: Repost - please ignore. Pin
ThatsAlok25-Aug-08 1:28
ThatsAlok25-Aug-08 1:28 
GeneralRe: Repost - please ignore. Pin
ThatsAlok25-Aug-08 1:26
ThatsAlok25-Aug-08 1:26 
AnswerRe: How to convert string to array of bytes? [modified] Pin
toxcct24-Aug-08 21:27
toxcct24-Aug-08 21:27 
GeneralRe: How to convert string to array of bytes? Pin
kapardhi24-Aug-08 21:38
kapardhi24-Aug-08 21:38 
GeneralRe: How to convert string to array of bytes? Pin
toxcct24-Aug-08 21:43
toxcct24-Aug-08 21:43 
GeneralRe: How to convert string to array of bytes? Pin
CPallini24-Aug-08 21:47
mveCPallini24-Aug-08 21:47 
GeneralRe: How to convert string to array of bytes? Pin
toxcct24-Aug-08 21:50
toxcct24-Aug-08 21:50 
GeneralRe: How to convert string to array of bytes? Pin
CPallini24-Aug-08 21:58
mveCPallini24-Aug-08 21:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.