R
Roy Chastain
I have a C# module that defines a type and then makes several arrays
of that type.
public class ArrayEntryType
{ byte member1;
.... ];
public static ArrayEntryType[] array1 = {
new ArrayEntryType(1),
new ArrayEntryType(2)};
public static ArrayEntryType[] array2 = {
new ArrayEntryType(1),
new ArrayEntryType(2)};
etc
Now, in MC++ would like to delcare a static enity that would be an
array of pointers to array1, array2 ... arrayn.
Every combination of defineing the array of pointer to an array that I
try gives me various errors about type conversions etc.
public __gc class ArrayUser {
public:
static ArrayEntryType * (array_ptr_table []) __gc[]; //
this line gives compile error
static ArrayUser (void)
{ array_ptr_table= new ArrayEntryType * [6]; //
note this line needs lots of work
array_ptr_table[0] = &array1;
array_ptr_table[1] = &array2;
}
};
The definition of array_ptr_table is the current problem, but I that
the new will also need help once the definition is correct.
Thanks for you help.
of that type.
public class ArrayEntryType
{ byte member1;
.... ];
public static ArrayEntryType[] array1 = {
new ArrayEntryType(1),
new ArrayEntryType(2)};
public static ArrayEntryType[] array2 = {
new ArrayEntryType(1),
new ArrayEntryType(2)};
etc
Now, in MC++ would like to delcare a static enity that would be an
array of pointers to array1, array2 ... arrayn.
Every combination of defineing the array of pointer to an array that I
try gives me various errors about type conversions etc.
public __gc class ArrayUser {
public:
static ArrayEntryType * (array_ptr_table []) __gc[]; //
this line gives compile error
static ArrayUser (void)
{ array_ptr_table= new ArrayEntryType * [6]; //
note this line needs lots of work
array_ptr_table[0] = &array1;
array_ptr_table[1] = &array2;
}
};
The definition of array_ptr_table is the current problem, but I that
the new will also need help once the definition is correct.
Thanks for you help.