CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: CArrays

  1. #1
    Guest

    CArrays

    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?


  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: CArrays

    The declaration of CMyClass must be placed before the declaration of your array. You can use forward declaration also.


  3. #3
    Join Date
    May 1999
    Location
    Republic of Korea
    Posts
    74

    Re: CArrays

    Did you include "afxtempl.h" ?



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured