Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / August 2007

Tip: Looking for answers? Try searching our database.

Multi-level namespace?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cat - 19 Aug 2007 16:32 GMT
In C#, this is legal
namespace MyNamespace.MyApp
{
}

But when I did that in VC++, it didn't compile.
I had to change it to
namespace MyNamespace
{
 namespace MyApp
 {
 }
}

If the level is more than two, it gets really nasty. Why can't I do it
the way I do in C#?
David Wilkinson - 19 Aug 2007 17:05 GMT
> In C#, this is legal
> namespace MyNamespace.MyApp
[quoted text clipped - 12 lines]
> If the level is more than two, it gets really nasty. Why can't I do it
> the way I do in C#?

Cat:

Wrong syntax.

namespace MyNamespace::MyApp
{
}

Signature

David Wilkinson
Visual C++ MVP

Cat - 20 Aug 2007 04:38 GMT
> > In C#, this is legal
> > namespace MyNamespace.MyApp
[quoted text clipped - 25 lines]
> David Wilkinson
> Visual C++ MVP

Thank you.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.