Mar 27, 2005 #1 L 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.
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.
May 6, 2005 #2 L 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 you need define file: #include <afxcoll.h>