problems with array collections
Juan Carlos Cobas -- qocarlos@usc.es Thursday, November 14, 1996 Enviroment:Windows 95,VC++ 4.0 ============================== Hi All, When I declare an array collection that contains ints in the public atributes of the class document // Attributes public: CArrayy; I always get the following error: error C2501: 'CArray' : missing decl-specifiers However, I have no problems when I declare a CDWordArray // Attributes public: CDWordArray y; Any help will be greatly appreciated . Regards to all, ================================== Juan Carlos Cobas Gomez Departamento de Quimica Organica Universidade de Santiago de Compostela Fax number: +34-81-595012 Telephone number: +34-81-591085 email: qocarlos@uscmail.usc.es Spain ==================================
Sumit Chawla -- schawla@csci.csc.com Friday, November 15, 1996 Enviroment:Windows 95,VC++ 4.0 > ============================== Juan, Sorry to sound silly but are you sure you have: #include?? CArray is a template defined in afxtempl.h as opposed to CDWordArray which is a CObject derived collection class. Hope this helps. Sumit Chawla. Computer Sciences Corporation. email: schawla@csci.csc.com > > Hi All, > When I declare an array collection that contains ints in the public > atributes of the class document > > // Attributes > public: > CArray y; > > I always get the following error: > error C2501: 'CArray' : missing decl-specifiers > > However, I have no problems when I declare a CDWordArray > > // Attributes > public: > CDWordArray y; > > Any help will be greatly appreciated . > > > > > Regards to all, > > ================================== > > Juan Carlos Cobas Gomez > > Departamento de Quimica Organica > > Universidade de Santiago de Compostela > > Fax number: +34-81-595012 > > Telephone number: +34-81-591085 > email: qocarlos@uscmail.usc.es > > Spain > > ================================== > >
| Вернуться в корень Архива |