cross reference in managed C++?

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....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top