Hi,
I'm trying to wrap my unmanaged c++ code into a managed c++ wrapper.
The problem is VC .NET doesn't seem to find the namespaces defined in
my unmanaged code. Let's say I have a file "server.h" with a namespace
server. When I include this file in another file that will be compiled
as managed, the compiler gives me the following error:
C2871: 'server' : a namespace with this name does not exist
How can I use unmanaged namespaces in my managed code?
Thx in advance,
RaKKeR
Tamas Demjen - 09 May 2005 17:58 GMT
///// unmanaged.h
namespace Unmanaged
{
class A
{
};
}
// managed.h
#include "unmanaged.h"
namespace Managed
{
ref class B
{
Unmanaged::A* a;
};
}
You should be able to wrap unmanaged code into a managed class, and use
unmanaged namespaces too.
Tom
> Hi,
>
[quoted text clipped - 11 lines]
>
> RaKKeR