M
Mark Prenter
Hi, I'm having a heck of a time figuring out arrays in the new version of
..NET. I'm used to .NET version 1. I'm trying to set the size of an array,
when an object is created.....let me explain it like this :
Let's say I have one object called "Compact_Disk" and a second object called
"Song". A compact disk can contain any number of songs.
In .NET v1, I could define my song array in my .h file as :
Song* diskSongs __gc[];
Then, when I initialize a Compct_Disk object, I could tell it how many songs
there are in the constructor, and have something like this in the code:
diskSongs = new Song* __gc[numberOfSongs]
How would I do something like this in VC++ 2005?
Please help while I still have hair left.
/\/\ark
..NET. I'm used to .NET version 1. I'm trying to set the size of an array,
when an object is created.....let me explain it like this :
Let's say I have one object called "Compact_Disk" and a second object called
"Song". A compact disk can contain any number of songs.
In .NET v1, I could define my song array in my .h file as :
Song* diskSongs __gc[];
Then, when I initialize a Compct_Disk object, I could tell it how many songs
there are in the constructor, and have something like this in the code:
diskSongs = new Song* __gc[numberOfSongs]
How would I do something like this in VC++ 2005?
Please help while I still have hair left.
/\/\ark