简体   繁体   English

在Visual Studio 2010 C ++中包含名称空间

[英]Including a namespace in Visual Studio 2010 C++

I am looking to use the Aes Class from System.Security.Cryptography. 我正在寻找使用System.Security.Cryptography中的Aes类。

How do I set up the project so that I can create an Aes object? 如何设置项目,以便可以创建Aes对象?

Here is the reference: http://msdn.microsoft.com/en-us/library/system.security.cryptography.aes.aspx 这是参考: http : //msdn.microsoft.com/zh-cn/library/system.security.cryptography.aes.aspx

Thank you 谢谢

That's a .Net class; 那是一个.Net类; you cannot use it in native C++. 您不能在本机C ++中使用它。

Instead, use C# or C++/CLI. 而是使用C#或C ++ / CLI。

Alternatively, use the native CAPI or CNG (Vista or later) interfaces instead in native C++. 另外,也可以在本机C ++中使用本机CAPI或CNG(Vista或更高版本)接口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM