G
Guest
How does one make a gc class that contains an array of handles to an array of
X-type? // comments out what I am trying to do:
public ref class c0
{
private:
static System::UInt32 c0_uid;
System::Int32 ndx;
array<System::UInt32> ^ c01 ;
// array<System::UInt32^> ^ c02 ;
public:
c0(void);
~c0(void);
System::UInt32 get_c01(System::Int32);
c0::c0(void)
{ c01 = gcnew array< System::UInt32 >(0x10);
// c02 = gcnew array< System::UInt32^ >(0x10);
for (ndx=0;ndx<0x10;ndx++){
c01[ndx] = (c0_uid << 8) + ndx;
// c02[ndx] = &(c01[ndx]);
}
c0_uid++;
}
X-type? // comments out what I am trying to do:
public ref class c0
{
private:
static System::UInt32 c0_uid;
System::Int32 ndx;
array<System::UInt32> ^ c01 ;
// array<System::UInt32^> ^ c02 ;
public:
c0(void);
~c0(void);
System::UInt32 get_c01(System::Int32);
c0::c0(void)
{ c01 = gcnew array< System::UInt32 >(0x10);
// c02 = gcnew array< System::UInt32^ >(0x10);
for (ndx=0;ndx<0x10;ndx++){
c01[ndx] = (c0_uid << 8) + ndx;
// c02[ndx] = &(c01[ndx]);
}
c0_uid++;
}