Hi all,
I tried creating a class that has a function that accepts an array. I am not sure what i'm doing wrong. I'm using VC++ .Net and trying to bring the COM into VB .Net. I see all my other functions except setArr (the one that passes the array).
Thanks in advance
I tried creating a class that has a function that accepts an array. I am not sure what i'm doing wrong. I'm using VC++ .Net and trying to bring the COM into VB .Net. I see all my other functions except setArr (the one that passes the array).
Code:
// My class
public __gc class Boxes
{
private:
int maxPos;
int *myArr;
public:
Boxes(int, int, int);
~Boxes();
void setArr(int*, int);
int getArray(int);
};
// Function that accpets Array and cannot be seen in VB.net
void SimMap::Boxes::setArr(int *thisArray, int count)
{
maxPos = count;
for (int i = 0; i<maxPos; i++)
{
//myArr[i] = thisArray[i];
// Do something with thisArray
}
}
// Regular function
int SimMap::Boxes::getArray(int index)
{
return myArr[index];
}
Thanks in advance