Click to See Complete Forum and Search --> : CArrays


May 19th, 1999, 01:03 AM
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?

Franky Braem
May 19th, 1999, 01:25 AM
The declaration of CMyClass must be placed before the declaration of your array. You can use forward declaration also.

Jaeyeon Lee
May 19th, 1999, 04:09 AM
Did you include "afxtempl.h" ?