How to use Namespaces of .Net in C++?

柔情痞子 提交于 2019-12-11 07:29:03

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!