Thema: Delphi Gigabyte dll functions

Einzelnen Beitrag anzeigen

Olli
(Gast)

n/a Beiträge
 
#27

Re: Gigabyte dll functions

  Alt 24. Aug 2007, 02:04
Zitat von Razor:
So this is accuall boolean function that returns -1 or 0 ,you can also sometime see the parameter in the name of the function.Is can only be boolean.
The point is, that per definition a LongBool (Windows.BOOL) can have any value other than 0 and will be true in that case. This also means that it is not sufficient to check for 1 (as true) and 0 (as false) but rather you should check against 0 (i.e. FALSE) in all cases.
  Mit Zitat antworten Zitat