Problems In Visual C# coding
Sir,
I have a certain part of code which i have changed to visaul C# from c++ it is giving me some problems.I am not able to understand how to solve it.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Image *createILNode(char* filename)
{
ImageList *node = new imageList();
node->imageIndex = 0;
node->next subject = null;
node->next_replicate = null;
return node;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Public struct ImageList
{
unsafe public char[] filename;
public int imageIndex;
unsafe public ImageList *next_replicate;
unsafe public ImageList *next_subject;
};
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
These lines are giving me problem.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ImageList subject;
subject = header = createILNode(token);
subject.next_subject = createILNode(token);
subject = subject.next_subject;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
the problem i am facing is that the assignment in above part of code is not working.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1. Cannot Take the address or the size of the variable of managed type ('structure_test.ImageList').
}

