Re: "Boolean" broken in Delphi 2007 ?
- From: Arthur Hoornweg <antispam.hoornweg@xxxxxxxxxxxxx>
- Date: Fri, 28 Sep 2007 09:13:42 +0200
Remy Lebeau (TeamB) wrote:
WordBool and Boolean are not the same data type. Boolean is not compatible
with ActiveX.
I know, but I use late binding. In unit system, the variant manager expects
"boolean" in vartobool/varfrombool so it knows how to convert it right.
Anyway, I tried your suggestion. Passing a boolean as variant doesn't work.
Nor does typecasting Wordbool(true).
The only thing that definitely helps is moving the Round(zoom * screendpi)
out of the function call which is very unexpected and makes me believe
there's a rtl bug involved.
This works perfectly:
Y:=Round(zoom * screendpi) ;
x := 1;
o.testproc(x, Y, TRUE);
There's something very fishy about putting the "round" function inside the
function call. Occasionally my system throws the exception "out of present
range" which I've never had before. Maybe some CPU or FPU flag remains
set after the function call.
--
Arthur Hoornweg
(In order to reply per e-mail, please just remove the ".net"
from my e-mail address. Leave the rest of the address intact
including the "antispam" part. I had to take this measure to
counteract unsollicited mail.)
.
- References:
- "Boolean" broken in Delphi 2007 ?
- From: Arthur Hoornweg
- Re: "Boolean" broken in Delphi 2007 ?
- From: Remy Lebeau \(TeamB\)
- "Boolean" broken in Delphi 2007 ?
- Prev by Date: Re: 64 Bit operating system trends
- Next by Date: Re: Why Microsoft must abandon Vista to save itself
- Previous by thread: Re: "Boolean" broken in Delphi 2007 ?
- Next by thread: Re: "Boolean" broken in Delphi 2007 ?
- Index(es):
Relevant Pages
|