CTypedPtrArray in MFC ???

Status
Not open for further replies.

Longmcx

Junior Member level 1
Joined
Sep 28, 2004
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
147
Hi everybody!
i have a problem with my code. in my source code file, i write:

//////////////////
class Cline : public CObject // create class CLine
{
public:
CPoint m_from;
CPoint m_to;
public:
void Addline( );
};
typedef CtypedPtrArray<CObArray, Cline*> MyLines ;

//////////////////

But i alway receive error :

error C2143: syntax error : missing ';' before '<'.

I don't know why??? Please help me!!
Thanks in advance.
 

you need define file:
#include <afxcoll.h>
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…