G
Guest
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::_ArrayList** larray; //This is the problem???
//I am calling it like
str = cpi->getVal(&lnames,&lgerms,&larray);
Give error C2664: 'IManagedInterface::getVal' : cannot convert parameter 3
from 'mscorlib::_ArrayList ***__w64 ' to 'mscorlib::_ArrayList ** '
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::_ArrayList** larray; //This is the problem???
//I am calling it like
str = cpi->getVal(&lnames,&lgerms,&larray);
Give error C2664: 'IManagedInterface::getVal' : cannot convert parameter 3
from 'mscorlib::_ArrayList ***__w64 ' to 'mscorlib::_ArrayList ** '
How do i work around this??
Thanks ppl!