开发者

NativeMethods doesn't exist in OpenNETCF.Security.Cryptography

I got a sample snippet code from OpenNETCF and cfAes, but name space definition is missing for some reason. Here is the missing namespace:

using OpenNETCF.Security.Cryptography.NativeMethods;

I tried to add reference for all the OpenNETCF libraries. But didn't work me开发者_运维技巧.

Any thoughts?

Many thanks.


Make sure you've got version compatability. A lot of the crypto stuff was in the early versions of the SDF because it was used for WSE and CF 1.0 didn't have much for crypto. As the CF matured and gained crypto and as WSE died and we pulled it out to its own library, we removed a lot of that stuff from the base SDF code base. If you have an old snipped and you're trying to compile against the newer binaries, the underlying calls you're after simply may not be there.

If that's the case, you're probably best served by getting the code for the older SDF (we've got them all available for download - bottom of the page) and pulling out the pieces that you need.


That is an internal class in the main OpenNETCF.dll assembly. It's not a namespace. Try commenting it out to see if the class compiles.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜