G
Guest
I am porting my application from .NET 1.1 to 2.0. It worked fine in 1.1, but
will not compile in 2.0. I have this function in a c++ file:
namespace CPPBack
{
public __gc class CPPClass{
public: static CsStRe* RunStr2(CsStRe *ifirst[],int index,String *str2)[]
{
// code is in here.
}
};
}
I compile it with /clrldsyntax.
I have this in my C# program:
public class CsStRe
{
// variables defined here.
}
CsStRe[] first = new CsStRe[numelem+1];
CsStRe[] CSCurr = CPPBack.CPPClass.RunStr2(first, CurKtr, Str2);
The C# build fails, with error CS1502 and CS1503 on the first parameter of
RunStr2, saying that the parameter is the wrong type. Is there a way to
convert it so that it will work? Please let me know of any suggestions. Thank
you.
will not compile in 2.0. I have this function in a c++ file:
namespace CPPBack
{
public __gc class CPPClass{
public: static CsStRe* RunStr2(CsStRe *ifirst[],int index,String *str2)[]
{
// code is in here.
}
};
}
I compile it with /clrldsyntax.
I have this in my C# program:
public class CsStRe
{
// variables defined here.
}
CsStRe[] first = new CsStRe[numelem+1];
CsStRe[] CSCurr = CPPBack.CPPClass.RunStr2(first, CurKtr, Str2);
The C# build fails, with error CS1502 and CS1503 on the first parameter of
RunStr2, saying that the parameter is the wrong type. Is there a way to
convert it so that it will work? Please let me know of any suggestions. Thank
you.