I have a native C/C++ struct
typedef struct
{
...
} AStruct;
and in C++/CLI code i define one delegate and one cli array as following
public delegate void UpdateDataDelegate(AStruct% aSt,AStruct% bSt);
cli::Array<AStruct>^ args=gcnew cli::Array<AStruct>(2); // complile failed!!!!。
this->Invoke(updateData,args);
AStruct
has many fields and was used by many modules so if i don't like to write a mananged wrap for AStruct
, how to make above code works?
many thanks