K
kchui
I have a C# interface as:
public interface IBar{
void TestParam(ref StringCollection a, ref int [] b);
}
And I need to implment it in Managed C++, and I try to implement it as:
public __gc class Foo : public IBar
{
public:
virtual void ITestParam::TestParam(StringCollection __gc* __gc* a,
int (__gc*) b __gc[])
{
}
}
The complier complains that:
error C2146: syntax error : missing ')' before identifier 'b'.
I try a lot of different options, putting b in different position, and
just could not get it right. Any idea?
I realize that the problem is with the second parameter "ref int [] b"
cos if I took it out it just works.
public interface IBar{
void TestParam(ref StringCollection a, ref int [] b);
}
And I need to implment it in Managed C++, and I try to implement it as:
public __gc class Foo : public IBar
{
public:
virtual void ITestParam::TestParam(StringCollection __gc* __gc* a,
int (__gc*) b __gc[])
{
}
}
The complier complains that:
error C2146: syntax error : missing ')' before identifier 'b'.
I try a lot of different options, putting b in different position, and
just could not get it right. Any idea?
I realize that the problem is with the second parameter "ref int [] b"
cos if I took it out it just works.