I can't seem to declare CArrays correctly. I use the format from the help files
CArray<CMyClass,CMyClass> myArray;
but when I compile it says I'm missing a ; before the <
What I doing wrong/not doing?
Printable View
I can't seem to declare CArrays correctly. I use the format from the help files
CArray<CMyClass,CMyClass> myArray;
but when I compile it says I'm missing a ; before the <
What I doing wrong/not doing?
The declaration of CMyClass must be placed before the declaration of your array. You can use forward declaration also.
Did you include "afxtempl.h" ?