> > using c, some preprocessor #ifdefs and abstracted functions i > > managed to port my first big project to ppc... hehe. writing in > > c and not in c++ for ppc seems not to be very common. i did it > > using the ms embedded tools/ms vc because i didn't find any > > working port of gcc for ppc. actually my application also works > > in windows (in a little window of course). > > take it one step further - that is, dont use #ifdef's :) > > and, have your 'main code' program towards a new set of API's > (ie: we created a DAL.h - device abstraction layer) and the > code ends up looking very clean/simple :) > > the difficult task is writing the implementation of the DAL > for every device that exists. this is what takes time :) we > have spend a good 6 months on this project, it takes a while > to really see results. > > you also need to have a 'new event system' = which is NOT > platform dependent. we abstracted that as well - the code > you write knows nothing about a specific PDA.
that was more or less my approach too. just that my version does not look that clean at the moment... and only supports pos/ppc/windows (with no further additions planned). my code actually still looks very "palm os like", that is, there are ApplicationHandleEvent and FormEvent functions, though slightly modified (the form pointer and event type is passed to the FormEvent function. my application is all about forms, and one of the main problems was combobox support, as all the items have to be added at runtime. i'm now working on cleaning everything up a bit to port another (similar) application to ppc. the positive side effects of porting an application are that you find your *last* hidden bugs (yeah, sure...) and the code get's more structured and readable. markus dresch (www.palmside.com) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
