Hi,
I am doing an interop from unmanaged code to C#.
How do i pass an ArrayList pointer from an unmanaged code, (structres are
easily passed by between C# and C).
//This is the C code
NameStruct lnames; //This is a structure in C#
GermStruct lgerms; //This is a structure in C#
mscorlib::_Arra yList** larray; //This is the problem???
//I am calling it like
str = cpi->getVal(&lnames ,&lgerms,&larra y);
Give error C2664: 'IManagedInterf ace::getVal' : cannot convert parameter 3
from 'mscorlib::_Arr ayList ***__w64 ' to 'mscorlib::_Arr ayList ** '
How do i work around this??
Thanks ppl!
I am doing an interop from unmanaged code to C#.
How do i pass an ArrayList pointer from an unmanaged code, (structres are
easily passed by between C# and C).
//This is the C code
NameStruct lnames; //This is a structure in C#
GermStruct lgerms; //This is a structure in C#
mscorlib::_Arra yList** larray; //This is the problem???
//I am calling it like
str = cpi->getVal(&lnames ,&lgerms,&larra y);
Give error C2664: 'IManagedInterf ace::getVal' : cannot convert parameter 3
from 'mscorlib::_Arr ayList ***__w64 ' to 'mscorlib::_Arr ayList ** '
How do i work around this??
Thanks ppl!
Comment