On Wed, 6 Oct 2004 01:40:16 -0000, Wilson, Mike E. <[EMAIL PROTECTED]> wrote:It is obvious that the new Elipse Development IDE for Palm supports the C or C++ language. My question is why is there so little support for programming applications in C ++ and if Palm support programming in this language why are there no foundation classes or development examples, books, etc.?
My limited understanding is C ++ would be more efficent than C, require less code, be easier to follow and understand. Someone please expand on this for me.
Your limited understanding isn't entirely correct. C++ is C with added features. Application written in C++, as compared to C, have more or less equivalent efficiency and whether they require less code or are easier to follow and understand depends much more on how well you can program than on which language you're using.
I adamantly diagree! C++ is not C with added features. It`s more complex
language with more power and more extencive resources use than C.
Main limitation of C++ for palm is extesive memory usage by some language
mechanismes such as exception handling and placing VTBL into global data space
limited by single 64K section size. Single data segment is not palm limitation.
It`s limitation of compiler.
To answer your question, though: historical baggage. Palm OS before OS 6 (i.e. OS in every publicaly available Palm device currently on the market) has very weak support, all Palm OS API was pure C and those 2 facts combined contributed to the fact that no-one really tried to develop C++ wrappers on Palm OS (i.e. foundation classes). Lack of C++ code to document leads to lack of examles and books.
Win32 API written on plain C, and what?..
Which is not to say that there aren't any. There is at least one widely known C++ fundation class, POL, shipped with CodeWarrior 9.3. If you're skilled enough, you can also use STL with CodeWarrior 9.3.
PODS mostly targets OS 6 which has much better C++ support so the situation might change in the future. However, Palm OS is still in C (for obvious reasons of backward-compatibility) and currently there are no OS 6 devices on the market, so it might not.
The point is moot anyway. C is well documented, well supported and good enough to write high-quality applications for Palm. Those are the limitation of Palm OS platform. Accept them, move on and start cranking your code in C. C++ by itself won't save you.
Is C well supported in palm?? And how often You are use standart C library (especially with Metrowerks CW)??
Krzysztof Kowalczyk | http://blog.kowalczyk.info
If you have enough skills you may write powerful and elegant programs with C++.
And it`s more effective than C, especialy if scalable solution is needed.
-- Alexey Tikhvinsky mailto:[EMAIL PROTECTED] ECTACO, Inc. http://www.ectaco.com http://www.lingvosoft.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
