Frank Heckenbach wrote:
Is this description complete? -1 is failure, 0 is "generally [...] some type of failure"? Then > 0 is success, or what? Since -1 and 0 "generally" seem to have to be distinguished, that's just not a Boolean (two-valued) result, so one should just use an integer result type.
I'd yet have to see the weirder cases, but so far I see no problem. Perhaps there are perceived problems when not all results are possible.
Probably, the weird cases don't have function result BOOL in the Win32 API, so I think you are right that testing <> 0 is OK after all.
Regards,
Adriaan van Os