I found the answer (at least a part) by myself:
I need to declare the C# interface as follows:
Code:
public interface IMessageRouterInterface
{
void SendStruct([MarshalAs(UnmanagedType.Struct)]CSTestProperties oTestData);
}
and then I can pass the struct on the CPP side as:
Code:
MyInetrop::CSTestProperties oTestProperties;
Leave a comment: