> > um.. *cough*.. Helio :)
>
> Hairball time? ;)
just a few :)
> > that platform is so screwed up, i had to rewrite most of the OS calls
> > to make my Palm code portable :) they look similar, but trust me..
> > totally different :P
>
> Which is why I would love to make my code separated into platform specific
> and independent. I've never done that but think it is the way to go. So,
> if I want to write text on a screen, I would say PopupDamnText("The Text")
> where PopupDamnText() would then be defined for each platform. I would
> like to have something like xwWindows, where you can write code that can
> then be exported to PC, Mac, and X. Of course, realistically, you can only
> go so far doing that. And, the program size will increase because of your
> wrapper functions. =(
why use wrapper functions? why not just use something like this:
// palm specs
#ifdef PALM
#define PlatformDrawChars(str,len,x,y) WinDrawChars(str,len,x,y);
#endif
// helio specs
#ifdef HELIO
#define PlatformDrawChars(str,len,x,y) GfxDrawChars(str,len,x,y);
#endif
then, use PlatformDrawChars() where you need to do something.
the marco will replace with the appropriate device call when
needed.. however, since many devices may do some things totally
different, the one-to-one mapping is not possible ;(
for example, EvtGetEvent() on the Palm wants a timeout parameter..
on the Helio, no timeout parameter :))
i ended up writing DeviceGetEvent() to be Palm compliant :)
not to mention i wrote my own graphics library so i could have
offscreen windows and some primitive drawing functionality that
was missing :)
> > what is the interest for a nice sample app showing multisegments in
> > prc-tools? (like cube3D et al). i know people have been asking.. it
> > really is easy if you know what you are doing :)
>
> I am interested =)
bug me when i am not about to head off to bed after one to many
long island iced teas :) oh man.. that 800g steak was perfect :)
> > but then again, it was all explained in one of the slides at
> > PalmSource 2000 :)
>
> Of course that assumes that I went there ;)
http://www.palmsource.com/slides.asp
track: 108
name: Writing the Non-Simple Application
enjoy :)
// az
[EMAIL PROTECTED]
http://www.ardiri.com/ <--- free games!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/