I ran across a strange problem in a DLL compiled with PB.
Step by step I removed code and modified it, until I simplified
it to the small Exe program below, so others could easily try it.
For some reason instead of correctly displaying 0, it displays
2.4426950… I don’t know if this is a PB problem, or if it
happens only on certain computers (I’m using a PIII). I hope
others can check this out to let me know their findings.
Step by step I removed code and modified it, until I simplified
it to the small Exe program below, so others could easily try it.
For some reason instead of correctly displaying 0, it displays
2.4426950… I don’t know if this is a PB problem, or if it
happens only on certain computers (I’m using a PIII). I hope
others can check this out to let me know their findings.
Code:
$Compile Exe Function WinMain (ByVal hCurInstance As Long, _ ByVal hPrevInstance As Long, _ lpszCmdLine As Asciiz Ptr, _ ByVal nCmdShow As Long) Export As Long Dim a As Long, b As Ext, c As Ext, d As Ext MsgBox Str$(-1 + Abs((-1) ^ 2) / 1) a = c End Function
Comment