Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWnd refresh Pin
jamesrgoodwin1-Jun-05 1:04
jamesrgoodwin1-Jun-05 1:04 
Generalpush button Pin
ask_you31-May-05 23:48
ask_you31-May-05 23:48 
GeneralRe: push button Pin
Nilesh K.31-May-05 23:56
Nilesh K.31-May-05 23:56 
GeneralRe: push button Pin
ask_you1-Jun-05 0:12
ask_you1-Jun-05 0:12 
GeneralRe: push button Pin
Nilesh K.1-Jun-05 0:20
Nilesh K.1-Jun-05 0:20 
GeneralRe: push button Pin
ask_you1-Jun-05 0:35
ask_you1-Jun-05 0:35 
GeneralRe: push button Pin
Nilesh K.1-Jun-05 16:20
Nilesh K.1-Jun-05 16:20 
QuestionHow CreateFile can fail??? Pin
Dimitris Vikeloudas31-May-05 23:16
Dimitris Vikeloudas31-May-05 23:16 
I want to use CreateFile for creating of new files, overidding existing ones or just simply open them in various modes (depending on my applications' requirements). I know that when it fails it returns INVALID_HANDLE_VALUE and I have to use the GetLastError to find why. However, the GetLastError is a generic system function. Is anywhere any documentation about what errors can be the result of CreateFile. How do I know e.g. if I failed 'cause tried to create an existing file, tried to open an non-existing file, do not have enough disk space, do not have access to the parent directory, lost connection with a remote file store etc.

A cross reference list function-possible failures would be usefull for any Win32 function (I am looking for it not only for the CreateFile).

Anyone can point me to such documentation (books, web pages, etc) will be much appreciated.

Life is a river with mist ahead...
AnswerRe: How CreateFile can fail??? Pin
Cedric Moonen31-May-05 23:36
Cedric Moonen31-May-05 23:36 
GeneralRe: How CreateFile can fail??? Pin
Nilesh K.31-May-05 23:51
Nilesh K.31-May-05 23:51 
GeneralThanks but not what I am actually looking for... Pin
Dimitris Vikeloudas1-Jun-05 0:36
Dimitris Vikeloudas1-Jun-05 0:36 
GeneralRe: Thanks but not what I am actually looking for... Pin
geo_m1-Jun-05 1:36
geo_m1-Jun-05 1:36 
AnswerRe: How CreateFile can fail??? Pin
Ravi Bhavnani1-Jun-05 11:43
professionalRavi Bhavnani1-Jun-05 11:43 
AnswerRe: How CreateFile can fail??? Pin
Ravi Bhavnani1-Jun-05 11:45
professionalRavi Bhavnani1-Jun-05 11:45 
Questionntohl() in eVC pocketpc application? Pin
zuschauer198031-May-05 23:13
zuschauer198031-May-05 23:13 
GeneralPrinting Pin
sirtimid31-May-05 23:01
sirtimid31-May-05 23:01 
GeneralRe: Printing Pin
PJ Arends31-May-05 23:10
professionalPJ Arends31-May-05 23:10 
GeneralRe: Printing Pin
Nilesh K.1-Jun-05 0:01
Nilesh K.1-Jun-05 0:01 
GeneralProblem receiving UDP packets Pin
ilgale31-May-05 22:48
ilgale31-May-05 22:48 
Generalfstream buffer limits Pin
mcsherry31-May-05 22:30
mcsherry31-May-05 22:30 
GeneralMFC, push release button help Pin
Rostfrei31-May-05 22:26
Rostfrei31-May-05 22:26 
GeneralConverting txt to bmp Pin
Nilesh K.31-May-05 22:09
Nilesh K.31-May-05 22:09 
GeneralRe: Converting txt to bmp Pin
PJ Arends31-May-05 22:15
professionalPJ Arends31-May-05 22:15 
GeneralRe: Converting txt to bmp Pin
Nilesh K.31-May-05 22:24
Nilesh K.31-May-05 22:24 
GeneralRe: Converting txt to bmp Pin
PJ Arends31-May-05 23:01
professionalPJ Arends31-May-05 23:01 

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.