Click here to Skip to main content
16,011,542 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help!! Pin
chaolong5-Jun-02 4:59
chaolong5-Jun-02 4:59 
GeneralRe: Help!! Pin
Rage5-Jun-02 5:23
professionalRage5-Jun-02 5:23 
GeneralProblem with Creation Pin
Big B5-Jun-02 4:19
Big B5-Jun-02 4:19 
GeneralRe: Problem with Creation Pin
Tomasz Sowinski5-Jun-02 4:36
Tomasz Sowinski5-Jun-02 4:36 
GeneralRe: Problem with Creation Pin
Big B5-Jun-02 4:41
Big B5-Jun-02 4:41 
GeneralRe: Problem with Creation Pin
Tomasz Sowinski5-Jun-02 4:50
Tomasz Sowinski5-Jun-02 4:50 
GeneralRe: Problem with Creation Pin
Big B5-Jun-02 5:17
Big B5-Jun-02 5:17 
GeneralInteresting Remark in the MSDN Library... For CreateFile(...) Pin
James R. Twine5-Jun-02 3:41
James R. Twine5-Jun-02 3:41 
   I just recently noticed this remark in the MSDN Library:

[For] Windows 2000/XP: If CREATE_ALWAYS is specified as the value of the dwCreationDisposition parameter and FILE_ATTRIBUTE_NORMAL is specified as the value of the dwFlagsAndAttributes parameter, CreateFile will fail and set the error GetLastError reports to ACCESS_DENIED. In this case, set the value of the dwFlagsAndAttributes parameter to the ORed value of the FILE_ATTRIBUTE_HIDDEN and FILE_ATTRIBUTE_NORMAL attributes to avoid this error.

   Now, IIUC, code that once used CREATE_ALWAYS with FLAG_ATTRIBUTE_NORMAL and worked correctly on Win9x and WinNT will now start to FAIL when run on Win2K/XP?  That makes no sense to me, because it could break existing applications and code.  This also means that I can only create new files if they are initially hidden from now on?

   Also, that remark also conflicts with what is mentioned earlier in the page for CreateFile, because it says for FLAG_ATTRIBUTE_NORMAL: "The file has no other attributes set. This attribute is valid only if used alone."

   Thoughts?  (Note that I am not having any problems relating to this so far, nor have heard any reports.)

   Peace!

-=- James.
"Some People Know How To Drive, Others Just Know How To Operate A Car."
(Try Check Favorites Sometime!)
GeneralRe: Interesting Remark in the MSDN Library... For CreateFile(...) Pin
Tomasz Sowinski5-Jun-02 4:06
Tomasz Sowinski5-Jun-02 4:06 
GeneralRe: Interesting Remark in the MSDN Library... For CreateFile(...) Pin
James R. Twine5-Jun-02 4:17
James R. Twine5-Jun-02 4:17 
GeneralI need a function that takes a Day-of-Year and converts it back to a day and a month Pin
5-Jun-02 3:44
suss5-Jun-02 3:44 
GeneralRe: I need a function that takes a Day-of-Year and converts it back to a day and a month Pin
dazinith5-Jun-02 3:51
dazinith5-Jun-02 3:51 
GeneralRe: I need a function that takes a Day-of-Year and converts it back to a day and a month Pin
5-Jun-02 4:07
suss5-Jun-02 4:07 
GeneralRe: I need a function that takes a Day-of-Year and converts it back to a day and a month Pin
Mazdak5-Jun-02 3:51
Mazdak5-Jun-02 3:51 
GeneralThe algorithm you need.. Pin
Dean Goodman5-Jun-02 12:20
Dean Goodman5-Jun-02 12:20 
GeneralPointers to arrays of pointers. Pin
oRion5-Jun-02 3:19
oRion5-Jun-02 3:19 
GeneralRe: Pointers to arrays of pointers. Pin
Chris Losinger5-Jun-02 3:40
professionalChris Losinger5-Jun-02 3:40 
GeneralRe: Pointers to arrays of pointers. Pin
oRion5-Jun-02 17:19
oRion5-Jun-02 17:19 
GeneralRe: Pointers to arrays of pointers. Pin
jan larsen6-Jun-02 0:45
jan larsen6-Jun-02 0:45 
GeneralAnyone Familiar with Visual 1.5????? I need your help Pin
5-Jun-02 2:37
suss5-Jun-02 2:37 
GeneralRe: Anyone Familiar with Visual 1.5????? I need your help Pin
Mike Nordell5-Jun-02 3:39
Mike Nordell5-Jun-02 3:39 
GeneralRe: Anyone Familiar with Visual 1.5????? I need your help Pin
Michael P Butler5-Jun-02 5:05
Michael P Butler5-Jun-02 5:05 
GeneralRe: Anyone Familiar with Visual 1.5????? I need your help Pin
5-Jun-02 5:33
suss5-Jun-02 5:33 
GeneralRe: Anyone Familiar with Visual 1.5????? I need your help Pin
Mike Nordell5-Jun-02 6:35
Mike Nordell5-Jun-02 6:35 
GeneralRe: Anyone Familiar with Visual 1.5????? I need your help Pin
Nick Jacobs5-Jun-02 6:55
Nick Jacobs5-Jun-02 6:55 

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.