View Single Post

  #6 (permalink)  
Old 02-28-2006
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

You do indeed exacly the same. Hmm thinking...

Unless there is a bug in the TRUE. "Normally" 0 is false, and antithing that is not 0 is true. I recall my one of the Delphi versions (I think 2) where Borland wrote a bug in such a way that they interpreted -1 as True, 0 as false, but any other number was also false. This was leading to problems interfacing with win32 API and also with other apps (COM/DLL) of course.

So what if there is such a bug ? Is this C ? Then you can try it, because in C you can assign almost anything to anithing:

*Cancel = -1;
*Cancel = (!0);
*Cancel = 0xFFFF;
... or other combinations ...
Reply With Quote