Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: system call too small Pin
LunaticFringe15-Jan-10 11:44
LunaticFringe15-Jan-10 11:44 
GeneralRe: system call too small Pin
2buck5615-Jan-10 12:26
2buck5615-Jan-10 12:26 
GeneralRe: system call too small Pin
Garth J Lancaster15-Jan-10 12:49
professionalGarth J Lancaster15-Jan-10 12:49 
GeneralRe: system call too small Pin
LunaticFringe15-Jan-10 13:01
LunaticFringe15-Jan-10 13:01 
GeneralRe: system call too small Pin
2buck5615-Jan-10 13:51
2buck5615-Jan-10 13:51 
GeneralRe: system call too small [modified] Pin
LunaticFringe15-Jan-10 14:31
LunaticFringe15-Jan-10 14:31 
GeneralRe: system call too small Pin
2buck5615-Jan-10 15:02
2buck5615-Jan-10 15:02 
GeneralRe: system call too small Pin
CPallini15-Jan-10 22:02
mveCPallini15-Jan-10 22:02 
LunaticFringe wrote:
That's not the point.

Very well said.

LunaticFringe wrote:
GetLastError returns valid information from the last API call that failed; you're interrogating it when the last call succeeded. Not surprisingly, it returns gibbersih.

That's not completely true.In spite of the function name (GetLastError), when a API call succeedes, it often sets last error to 0. Hence, when a API call succeedes and GetLastError is different from zero, the odds are that it refers to an error occurred in a previous API call. That, however, doesn't change the prescription: "use GetLastError just when a API call fails".

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: system call too small Pin
CPallini15-Jan-10 22:11
mveCPallini15-Jan-10 22:11 
GeneralRe: system call too small Pin
Garth J Lancaster15-Jan-10 22:41
professionalGarth J Lancaster15-Jan-10 22:41 
GeneralRe: system call too small Pin
CPallini15-Jan-10 22:43
mveCPallini15-Jan-10 22:43 
GeneralRe: system call too small Pin
Garth J Lancaster15-Jan-10 22:59
professionalGarth J Lancaster15-Jan-10 22:59 
GeneralRe: system call too small Pin
CPallini15-Jan-10 23:10
mveCPallini15-Jan-10 23:10 
GeneralRe: system call too small Pin
Bram van Kampen17-Jan-10 6:18
Bram van Kampen17-Jan-10 6:18 
AnswerRe: system call too small Pin
Richard MacCutchan15-Jan-10 23:55
mveRichard MacCutchan15-Jan-10 23:55 
AnswerRe: system call too small Pin
David Crow16-Jan-10 5:06
David Crow16-Jan-10 5:06 
GeneralRe: system call too small Pin
CPallini16-Jan-10 7:57
mveCPallini16-Jan-10 7:57 
GeneralRe: system call too small Pin
2buck5616-Jan-10 11:01
2buck5616-Jan-10 11:01 
QuestionDefault path to Desktop with vista Pin
dbell0715-Jan-10 9:52
dbell0715-Jan-10 9:52 
AnswerRe: Default path to Desktop with vista Pin
CoderGirl4215-Jan-10 10:18
CoderGirl4215-Jan-10 10:18 
GeneralRe: Default path to Desktop with vista Pin
David Crow15-Jan-10 10:25
David Crow15-Jan-10 10:25 
GeneralRe: Default path to Desktop with vista Pin
dbell0715-Jan-10 10:46
dbell0715-Jan-10 10:46 
GeneralRe: Default path to Desktop with vista Pin
dbell0715-Jan-10 10:49
dbell0715-Jan-10 10:49 
GeneralRe: Default path to Desktop with vista Pin
Rozis16-Jan-10 10:28
Rozis16-Jan-10 10:28 
GeneralRe: Default path to Desktop with vista Pin
Spawn@Melmac18-Jan-10 0:35
Spawn@Melmac18-Jan-10 0:35 

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.