I'm trying to incorporate some of the POL containers into my otherwise
non-POL application.  However, when I include POL.h, I get the following
error:

Error   : illegal struct/union/enum/class definition
(included from:
POL.h:249
myFile.cpp:5)
POLDateTime.h line 32  class CDateTime : public DateTimeType

If I remove the Prefix file of PalmOS_Headers_Debug
It compiles fine but if I try to use CString it gives an "undefined
identifier" error on CString.

Is there a(n easy?) way to include the POL classes without completely
restarting the project as a POL project?


"Maks Pyatkovskiy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Run STLTest example, it's shipped with POL. This example shows how to
> use STL algorithms with POL containers.
>
> Personally I don't recommend extensively use STL on Palm. Palm is too
> weak for this. POL containers were designed for Palm, so they provide
> better performance.
>
> Look into CArray (dynamic array), CList (double linked list), CHash
> (hash table) and CStack (stack) docs. There are quite enough facilities
> for most applications.
>
> ______________________________________________
>
> Best regards,
> Maks Pyatkovskiy
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> [mailto:bounce-palm-dev-
> > [EMAIL PROTECTED] On Behalf Of Matthew Henry
> > Sent: Saturday, May 31, 2003 2:15 PM
> > To: Palm Developer Forum
> > Subject: STL and POL worth it?
> >
> > 1. Anyone have any experience/opinions about using the STL on the
> Palm.
> >   Specifically, is there a lot of code bloat which makes it not worth
> > it?  I wouldn't mind having a nice map and string classes.
> >
> > 2. I'm thinking of re-writing a large app to take advantage of POL
> (the
> > app is at a point where it could really do with a good rewrite
> anyway).
> >   Ben appears to be a big fan of POL.  Does anyone have any positive
> or
> > negative experience with writing a large app using POL?



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to