1. Abs() function in Dos32lib

Hi!.
I'm currently porting my windows thermometer program (Winther 0.5a) to DOS,
trying the nice Dos32Lib from David.

The only issues are:

- Euphoria should have a default directory where to place font files, in the
same way of includes. Now is necessary to copy all the fonts to the
application directory, taking disk space. That could be generic for any font
system.

- Moving from Win32Lib to Dos32lib is straightforward, just changing
"Dos32lib.E" for "Win32lib.ew" at include time. However, when trying to use
the "abs" function, I get an error, as it were undefined...

"abs has not been declared"

Maybe a bug?...
Jesus.

new topic     » topic index » view message » categorize

2. Re: Abs() function in Dos32lib

>"abs has not been declared"

Euphoria has no abs() function, it is defined in Win32lib:

global function abs( atom a )
    if a < 0 then
        return -a
    else
        return a
    end if
end function

But there is no abs() function in Dos32lib. David, a good suggestion
would be to either have an abs() function in Dos32lib, or to not let it
be global in Win32lib, so that another abs() function won't conflict when
switching between Win32lib and Dos32lib.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Abs() function in Dos32lib

Thanks, Robert:
Now,  adding abs.e to the Windows Thermometer Program, and changing
"Win32lib" for "Dos32lib", I got an operative version, with the same lookand
feel. Bitmaps are okay. And although some functions like "onUnload",
"setText", "setFont" are missing, they do not impact in the operativity of
the program.
Great, really great, David.


>"abs has not been declared"
>
> Euphoria has no abs() function, it is defined in Win32lib:
> But there is no abs() function in Dos32lib.
David, a good suggestion(for me) would be to have an abs() function in
Dos32lib to mimic Win32lib.
Jesus.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu