cross reference in managed C++?

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

is it possible, in managed C++, to have 2 class referencing each other if
they are in different namespace.....

I'm trying to compile a very simple sample with 2 classes which looks like
that (pseudo code)

public ref class CBar::Bar
{
public:
void Dump(CFoo::Foo^ f)
{
Console::WriteLine(f);
}
}
public ref class CFoo::Foo
{
public:
void Dump(CBar::Bar^ b)
{
Console::WriteLine(b);
}
}

I can't manage to declare or implement them I always have an unimplemented
bug...
grr.....
C++ is for masochist.. or unlucky such as me....
 
Back
Top