G
Guest
Hi All,
I created a .NET class library in C# (VS 2005 Beta 2) sometime back. I used
to group my interfaces and classes in namespaces like-
abc.cs
--------
namespace CompName.DomName.TechName.ProductName.Namespace1
{
public class/interface xyz
{
method1();
method2();
}
}
where there is no namespace like only CompName or DomName or TechName or
ProdName or combination of these. Actual namespace containing
interfaces/classes is only Namespace1 or Namespace2.
The above strategy compiled and worked fine.
Now, my client has said to convert the code to VC++ .NET (VS 2005 Beta2).
Now I am declaring the same C# code in C++ like-
abc.cpp
----------
#include "StdAfx.h"
#include "abc.h"
abc.h
-------
using namespace System;
namespase CompName:omName::TechName:roductName::Namespace1
{
public class/interface xyz
{
method1();
method2();
}
}
This gives compiler error "Namespace1 is not a valid class/namespac".
Can anybody help me? How to do it in VC++.NET.
Regards,
RS
I created a .NET class library in C# (VS 2005 Beta 2) sometime back. I used
to group my interfaces and classes in namespaces like-
abc.cs
--------
namespace CompName.DomName.TechName.ProductName.Namespace1
{
public class/interface xyz
{
method1();
method2();
}
}
where there is no namespace like only CompName or DomName or TechName or
ProdName or combination of these. Actual namespace containing
interfaces/classes is only Namespace1 or Namespace2.
The above strategy compiled and worked fine.
Now, my client has said to convert the code to VC++ .NET (VS 2005 Beta2).
Now I am declaring the same C# code in C++ like-
abc.cpp
----------
#include "StdAfx.h"
#include "abc.h"
abc.h
-------
using namespace System;
namespase CompName:omName::TechName:roductName::Namespace1
{
public class/interface xyz
{
method1();
method2();
}
}
This gives compiler error "Namespace1 is not a valid class/namespac".
Can anybody help me? How to do it in VC++.NET.
Regards,
RS