> > Can we use C++ and OOPS concept to develop shared library in Palm > > If anyone knows, pls inform me as how can i proceed with it > System shared libraries can use C++, but you can't export C++ > APIs, and any features that require global data storage (virtual > functions, exceptions) will not work.
This was the result I came to... But then I tried the latest prc-tools. Within a couple of hours, I was able to get a Shared library working, calling virtual methods in classes, passing structs back and forth. Not exposing C++ apis, but doing pretty much everything else I wanted. It did fail when I tried to make it a multi-segmented C++ shared library, but I've found a tool (multilink) that claims to be able to do even that. So now I'm maintaining two versions of my projects. One is a static library in Codewarrior, which I use to debug. The other is a shared library in prc-tools, which I will release. As a short aside, my co-worker was quite incensed when he heard that Codewarrior supported C++ in shared libraries, but didn't support virtual methods. His point being that virtual methods (and the things they give you, like inheritance, and polymorphism) are the only features of C++ worth using. In other words, C++ without virtual methods is just plain C. (He also said a lot of stuff like "Please, which century is it again?", and "Why am I wasting my time on this when the compiler should just figure it out." But then again, he used to be a Java guy... ;) Later, Blake. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
