Hi,
i have a situation:
C++ class:
namespace Shape
{
public ref class Shape
{
protected:
String^ name;
String^ color;
public:
Shape(String^ name, String^ color)
{
this->name = name;
this->color = color;
}
String^ toString()
{
String^ s;
s->Format("shape name = %s, shape color = %c", name->ToCharArray(),
color->ToCharArray());
return s;
}
};
}
C#class:
namespace ManyDLLs
{
class Program
{
static void Main(string[] args)
{
Shape.Shape s = new Shape.Shape("ksztalt", "bialy");
Console.WriteLine("s: " + ((Shape.Shape)s).toString());
Console.ReadKey();
}
}
}
But it prints only "s:". :(.
Do you know what I did wrong?
--
Best regards,
Odwrotnie.