T
Thomas
I can't call a method with managed(__gc) c++ class arguments.
e.g.
c++:
public __gc class Point { ... }
public __gc class Line
{
Line(Point *p0, Point *p1) { ... }
}
c#
namespace MyName
{
...
Point p0 = new Point(1,1);
Point p1 = new Point(2,2);
-> Line line = new Line(p0, p1);
...
I get following compiler error at the marked -> line:
error CS1502 ...
error CS1503 Argument1 can't be converted from MyName.Point to Point
Anybody know, how can I call the 'Line constructor' with 'Point' arguments?
Thanks in advance
Thomas
e.g.
c++:
public __gc class Point { ... }
public __gc class Line
{
Line(Point *p0, Point *p1) { ... }
}
c#
namespace MyName
{
...
Point p0 = new Point(1,1);
Point p1 = new Point(2,2);
-> Line line = new Line(p0, p1);
...
I get following compiler error at the marked -> line:
error CS1502 ...
error CS1503 Argument1 can't be converted from MyName.Point to Point
Anybody know, how can I call the 'Line constructor' with 'Point' arguments?
Thanks in advance
Thomas