Problem when declare CArray?
I declare this CArray in Header file
Code:
CArray<int, int> m_arrHashFileListBoxWidth;
When I compile, there are error message show
error C2143: syntax error : missing ';' before '<'
error C2501: 'CArray' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'
Do you know how to solve this problem?
Thank you for your answer.
Re: Problem when declare CArray?
Quote:
Originally posted by ooosawaddee3
I declare this CArray in Header file
Code:
CArray<int, int> m_arrHashFileListBoxWidth;
When I compile, there are error message show
error C2143: syntax error : missing ';' before '<'
error C2501: 'CArray' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'
Do you know how to solve this problem?
Thank you for your answer.
Are you doing this as part of an MFC project?
Have you added Afxtempl.h??