> To Mr. Sevilla and friends,
>
> 1. I got pose-3.1, pilrc-2.7b, and prc-tools-2.0.90 to work on my Linux
> box. I also downloaded sdk-3.5+docs. I discovered that I could not
> get any of the programs in Rhodes & McKeehan "Palm Programming"
> (and also MathLib.h/MathLib.c) to work, unless I make a few minor
> modifications in the code, namely changes in typedef names:
>
> Int -> Int16
> ULong -> UInt32
> DWord -> UInt32
> etc.
>
> I arrived (by trial and error) at these changes by comparing PalmTypes.h
> in sdk-2.0 and sdk-3.5. I have gotten the simple "Hello" program to
> work, and I am now writing a more ambitious program. I am not sure
> that I got the type mods correctly, so if anyone can give me a more
> accurate and complete list, I would be very much obliged. Thanks.
>
Get the 2.0 SDK as well if you need it. Apparently your book uses the OLD
STYLE SDK, which has slightly different type names. Place it in the Palm
include dirs and make a symbolic link to it instead of to the 3.5 SDK.
> 2. The "PalmOS Companion" and "PalmOS Reference" that comes with sdk-3.5
> are really for sdk-2.0. The correct functions can be obtained by
> reading the 3.5 include files. For example, the Fpl* functions are not in
> 3.5--they have been replaced by the Flp* functions. Queston: Just how do
> you do an sprintf with a "%20g" format for doubles? FlpFToA only
> does a "%e" format for floats ( -x.yyyyyyyye-nn ). Thanks again.
>
You can't. PalmOS simply doesn't support it, as I found out while trying
to write a calculator app of my own (before discovering EasyCalc).
PalmOS's support for float output is somewhat problematic... in fact one
of the things I tried to do was actually get a copy of the old glibc (a
1.x version) and adapt the code to sprintf to do it.
Oh, and while you're at it, go get a copy of the source code for mathlib.
It ought to make life easier.
And by the way, I've stopped palm dev indefinitely because my old palm
IIIe was stolen. :(
--
Rafael R. Sevilla <[EMAIL PROTECTED]> +63(2) 8177746 ext. 8311
Programmer, InterdotNet Philippines +63(917) 4458925
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]