Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load Bitmap from file to doc Pin
CPallini26-Aug-09 2:55
mveCPallini26-Aug-09 2:55 
QuestionDate and Time Pin
john563225-Aug-09 20:00
john563225-Aug-09 20:00 
AnswerRe: Date and Time Pin
Rajesh R Subramanian25-Aug-09 20:16
professionalRajesh R Subramanian25-Aug-09 20:16 
AnswerRe: Date and Time Pin
Cedric Moonen25-Aug-09 20:20
Cedric Moonen25-Aug-09 20:20 
QuestiondwDesiredAccess in CreateFile API Pin
Varghese Paul M25-Aug-09 18:47
Varghese Paul M25-Aug-09 18:47 
AnswerRe: dwDesiredAccess in CreateFile API Pin
Adam Roderick J25-Aug-09 19:45
Adam Roderick J25-Aug-09 19:45 
AnswerRe: dwDesiredAccess in CreateFile API Pin
Rajesh R Subramanian25-Aug-09 19:57
professionalRajesh R Subramanian25-Aug-09 19:57 
AnswerRe: dwDesiredAccess in CreateFile API Pin
Stuart Dootson25-Aug-09 21:06
professionalStuart Dootson25-Aug-09 21:06 
Varghese Paul M wrote:
Is there a way I can determine the result of the second CreateFile API without calling it?
ie, is there a way I can validate the second dwDesiredAccess by checking with the first dwDesiredAccess and return ERROR_SHARING_VIOLATION to the client without making a call to CreateFile API?


I don't believe so...and anyway, even if you could, the results could be invalid (by someone opening another handle on the file) before you could use them. Just open the file and be done with it. If it fails, it fails! But Win32 will tell you, through a combination of return code and GetLastError.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionLNK1107 Pin
MozhdehQeraati25-Aug-09 18:39
MozhdehQeraati25-Aug-09 18:39 
AnswerRe: LNK1107 Pin
Code-o-mat25-Aug-09 20:45
Code-o-mat25-Aug-09 20:45 
GeneralRe: LNK1107 Pin
MozhdehQeraati25-Aug-09 21:31
MozhdehQeraati25-Aug-09 21:31 
AnswerRe: LNK1107 Pin
Stuart Dootson25-Aug-09 21:08
professionalStuart Dootson25-Aug-09 21:08 
GeneralRe: LNK1107 Pin
MozhdehQeraati25-Aug-09 21:32
MozhdehQeraati25-Aug-09 21:32 
GeneralRe: LNK1107 Pin
Stuart Dootson25-Aug-09 22:08
professionalStuart Dootson25-Aug-09 22:08 
QuestionOnSize [modified] Pin
zhenek9125-Aug-09 17:06
zhenek9125-Aug-09 17:06 
AnswerRe: OnSize Pin
Code-o-mat25-Aug-09 20:28
Code-o-mat25-Aug-09 20:28 
AnswerRe: OnSize Pin
Cedric Moonen25-Aug-09 20:32
Cedric Moonen25-Aug-09 20:32 
GeneralRe: OnSize [modified] Pin
zhenek9125-Aug-09 20:39
zhenek9125-Aug-09 20:39 
QuestionAdding Checkboxes to a list control in every column Pin
Member 470944425-Aug-09 13:00
Member 470944425-Aug-09 13:00 
AnswerRe: Adding Checkboxes to a list control in every column Pin
Code-o-mat25-Aug-09 20:34
Code-o-mat25-Aug-09 20:34 
AnswerRe: Adding Checkboxes to a list control in every column Pin
David Crow26-Aug-09 3:09
David Crow26-Aug-09 3:09 
GeneralRe: Adding Checkboxes to a list control in every column Pin
Member 470944426-Aug-09 4:03
Member 470944426-Aug-09 4:03 
QuestionRe: Adding Checkboxes to a list control in every column Pin
David Crow26-Aug-09 4:09
David Crow26-Aug-09 4:09 
AnswerRe: Adding Checkboxes to a list control in every column Pin
Member 470944426-Aug-09 4:14
Member 470944426-Aug-09 4:14 
GeneralRe: Adding Checkboxes to a list control in every column Pin
David Crow26-Aug-09 4:17
David Crow26-Aug-09 4:17 

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.