The Museum of HP Calculators

HP Forum Archive 16

[ Return to Index | Top of Index ]

Re: Free42 for Pocket PC released
Message #1 Posted by Mike T. on 28 Mar 2006, 2:56 p.m.

Well dome !! - How does it work out when using a skin?

It makes me quite ashamed that I haven't managed to spend some more time on my own HP33C simulator, though I use Linux most of the time at home now, I'll have to stick with developing on Windows for now as to port my code to Linux I'm going to have to learn C (hard work) and get to grips with GTK (ugh - very hard work!).

Having used your HP42S emulator for a while I have to say that I'm very impressed with the job that the HP engineers did in designing the user interface. I personally (not trying to start any flame wars here) find it much easier to use than the HP41 - though I would miss the card reader on the real thing...

You simulator has earned a place on my desktop.

Mike T.

      
Re: Free42 for Pocket PC released
Message #2 Posted by Thomas Okken on 29 Mar 2006, 12:18 p.m.,
in response to message #1 by Mike T.

Well dome !! - How does it work out when using a skin?

Thanks! :-)
The skin code uses a GIF decoder I wrote myself, and then puts the data into a bitmap or a DIB. The GIF decoding part is a bit tricky, but I had that code lying around from another project, so it wasn't too bad. Copying the bitmap/DIB to the screen is a simple matter of calling BitBlt(). Note, however, that the code doesn't do any special handling for 8-bit screens -- I figured that's probably not an issue since everyone has 16-bit screens (or higher) these days. The Unix version does handle colormapped screens, and that *is* a serious pain.
The PocketPC skin display code is pretty much the same as the Win32 version; there's just some extra logic for skin stretching (pixel doubling on VGA screens) and weird display modes (the 5/3 horizontal stretch, and landscape mode).

[...] to port my code to Linux I'm going to have to learn C (hard work) and get to grips with GTK (ugh - very hard work!).

It's not easy learning C for the first time, but for what it's worth, by all means stick with GTK. It is much easier to use than the usual X libraries and toolkits. (The Free42 GTK front-end is only about half the size of the Motif front-end.)

Having used your HP42S emulator for a while I have to say that I'm very impressed with the job that the HP engineers did in designing the user interface.

I couldn't agree more. Also, when you're trying to re-create every last detail, by trying every possible keystroke in every possible mode, you discover just HOW hard they worked on it. I've never seen anything so meticulously well thought-out.

- Thomas


[ Return to Index | Top of Index ]

Go back to the main exhibit hall