View Single Post
Old 07-20-2002, 07:19 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
creating an array of an object on the freestore in c++ ??

i have a class named Album. I would like to create an array the size of 5 on the freestore.

PHP Code:
Albumdata[5] = new Album
i get the following error in my vc++6 compiler
Quote:
cannot convert from 'class Album *' to 'class Album *[5]'
There are no conversions to array types, although there are conversions to references or pointers to arrays
Error executing cl.exe.
can anyone help me?

Last edited by sde; 07-20-2002 at 07:30 PM.
sde is offline   Reply With Quote