15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


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:
	        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

==================================




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
> 
> ==================================
> 
> 





| Вернуться в корень Архива |