So, I've got a VC++ service.
Defined as:
Now, I've got another class, in another .h/.cpp file:
The problem is, I cannot use class abc inside of cass z. It tells me that class abc cannot be found.
If I include the header file, nothing.
If I change abc's namespace and 'use namespace newns' in class z, nothing. Even if I include the abc.h, nothing.
What do I need to do to allow class z to instantiate class abc?
Everything compiles OK, just when I try to reference the class abc from the class z, I get errors.
They are undeclared identifier, and if I use the ns::class convention, I get the error that class is not a member of ns, even though it shows up properly in the "Class View" window.
Thanks.
Defined as:
Code:
namespace xy
{
public __gc class z
{
// Class code.
};
}
Now, I've got another class, in another .h/.cpp file:
Code:
namespace xy
{
public __gc class abc
{
// Class code;
};
}
The problem is, I cannot use class abc inside of cass z. It tells me that class abc cannot be found.
If I include the header file, nothing.
If I change abc's namespace and 'use namespace newns' in class z, nothing. Even if I include the abc.h, nothing.
What do I need to do to allow class z to instantiate class abc?
Everything compiles OK, just when I try to reference the class abc from the class z, I get errors.
They are undeclared identifier, and if I use the ns::class convention, I get the error that class is not a member of ns, even though it shows up properly in the "Class View" window.
Thanks.