问题
How do I make use of the .NET framework namespaces from C++?
回答1:
C# will be
using System;
using System.Configuration;
C++ will be
using namespace System;
using namespace System::Configuration;
Don't forget to reference the libraries in your C++ project properties.
回答2:
You can do this in managed C++. Use #using directive and use the namespaces like you normally do.
回答3:
Start Here: Pure C++: Hello, C++/CLI
来源:https://stackoverflow.com/questions/736786/how-to-use-namespaces-of-net-in-c