Hi
Am I right in assuming that a managed C++ namespace definition can't include the period, unlike C#?
e.g. namespace myApp.Diagnostics -> causes syntax error
whereas the above compiles ok in C#
Thanks
Jon 2 1687
Hi Jon, Hi
Am I right in assuming that a managed C++ namespace definition can't
include the period, unlike C#? e.g. namespace myApp.Diagnostics -> causes syntax error
whereas the above compiles ok in C#
Yes, you're right. In C++, you'd need to say:
namespace myApp {
namespace Diagnostics {
....
}
}
That is, nesting namespaces to get the same effect.
Besides, in any case, the period is not the scope separator in C++ (it is in
C#, though); in C++ you'd use the double colon :: ;)
--
Tomas Restrepo to****@mvps.org
Thanks
"Tomas Restrepo (MVP)" wrote: Hi Jon,
Hi
Am I right in assuming that a managed C++ namespace definition can't include the period, unlike C#? e.g. namespace myApp.Diagnostics -> causes syntax error
whereas the above compiles ok in C#
Yes, you're right. In C++, you'd need to say: namespace myApp { namespace Diagnostics { .... } }
That is, nesting namespaces to get the same effect. Besides, in any case, the period is not the scope separator in C++ (it is in C#, though); in C++ you'd use the double colon :: ;) -- Tomas Restrepo to****@mvps.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: PDQBach |
last post by:
Hello,
im a visual c++ und borland c++builder newbie.
i have witten a simple mandelbrot algorithm and compiled it with both
vc++ (mfc) and cbuilder (vcl) (same code besides the drawing part)....
|
by: SHC |
last post by:
Hi all,
I created an application from the Console Application (.NET) of VC++ .NET
2003, and I did "Build" the application of the attached .cpp file,
volcanoes.xml and geology.dtd on my VC++ .NET...
|
by: John Madsen |
last post by:
This bug is easier to just show than to explain I think...
namespace M {
template <class T> struct A {
void f(int a = T::foo()) { } // line 5
};
}
namespace N {
struct B {
|
by: Leonid |
last post by:
Hello,
Please help me to resolve next problem: I have Web service
installed on the network and I can communicate with it via
WSDL file from several applications including VC++6
application...
|
by: borhan |
last post by:
Hi folks,
I am using vs.net 2003 for a time, however since last week I was
using MFC. Now, I am into managed C++ and windows forms.
I can say that I am very much confused with it, and I have...
|
by: msnews.microsoft.com |
last post by:
Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add
Reference". This will add a .NET DLL reference to the current project. After
I...
|
by: Ben Terry |
last post by:
Hello,
I have a VS 2003.NET solution which consists of four c++ unmanaged legacy
projects. I am adding a new project to the solution which will be in c#.
What do I need to do to my c++ projects...
|
by: Maansi Sanghi |
last post by:
Hi,
Is there a way to use the System.Xml.Schema classes in VC++ 6.0?
Regards,
Maansi
|
by: Daniel |
last post by:
Hi,
While I compile my old C++ source in VC.Net, rebulild whole project,
there are always some header files are unvaliable like "fstream.h",
"Dxguide.h".....etc.
Did VC.Net remove the VC++'s...
|
by: kaypohsingaporean |
last post by:
Hi all,
I am porting VC++6 code to VC++8/2005.
Here's the original code: (I have replaced the greater than sign with
> because this forum's parser doesn't like it)
template < class CharT,...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |