我用C#生成COM组件,以供VC++调用。在C#的com组件中,有一个函数,需要输出一个字符串数组,传递给VC++;同样的,还需要一个函数,需要由VC++传递一个字符串数组,来供给C#的函数使用
请问C#生成的接口中,应该使用什么类型呢VC++调用的时候,又应该用什么类型来接收。或者应该传递什么参数给COM
     public void GetTableStruct(ref string[]  DataKey, ref string[] DataType, ref string[] DataComment)
        {
            int count = myDataKey.Count;
            DataKey = new string[count];
            DataType = new string[count];
            DataComment = new string[count];
            for (int i = 0; i < count; i++)
            {
                DataKey[i] = myDataKey[i].ToString();
                DataType[i] = myDataType[i].ToString();
                DataComment[i] = myDataComment[i].ToString();
            }
        }类似这个,是C#的com接口,我的三个参数,应该是什么类型的,c++才能调用呢C#com