From: "Stringer" <[EMAIL PROTECTED]> > > If you are using a recent Metrowerks compiler (5.1 or more recent) > switch on the C++ option to turn in from a C compiler to a C++ > compiler. >>> You won't ever regret doing that. <<<
That was going to be my very next question of Ben and Vinu. > But it is your choice as to how much C++ stuff you use. Exactly!! :) > The structure copy issue can be fixed with a encapsulated, in-line > MemMove(pTo, pFrom, sizeof(...)) Yup, though I'd code it MemMove(pTo, pFrom, sizeof *pFrom) to avoid hard-coding the type. > In my experience, extensive use of classes while avoiding some > C++ features gives you smaller, cleaner, faster code than C for > medium to large programs. I would say that in practically any program I write, I'd want to use std::string, if nothing else from C++. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
