windowsphone runtime component内类型转换
现在我有别人提供的c++源码,要在wp8中调用.通过windowsphone runtime component来实现.c++里有个函数void uidToEncryptKeyNet(char *_uid,unsigned char *key)
我先问在windowsphone runtime component内,如果写调用函数呢,与char*对应的类型是什么? C++ char* --------------------编程问答-------------------- 如果是字符串可以考虑用HSTRING --------------------编程问答-------------------- 我不太明白,这个HString是windows运行时里面的类吗?我用了string^ 还有Array 都提示不能转换成char* --------------------编程问答--------------------
是winrt的类型。 --------------------编程问答-------------------- 刚发现是版主大神,有没有类似的例子啊.
现在我只需要把这几个参数打通了就行
c++:void uidToEncryptKeyNet(char *_uid,unsigned char *key)
c++/cx:void uidToEncryptKeyNet(xxxx _uid,xxxx key)
c#:void uidToEncryptKeyNet(byte[] uid,out byte[] key)
中间这个windowsphone runtime component 里到底怎么写,求赐教啊 --------------------编程问答-------------------- HSTRING能试吗?
http://msdn.microsoft.com/en-us/library/br205768(v=vs.85).aspx --------------------编程问答-------------------- 这里面只给了基本类型,但是指针怎么操作呢? --------------------编程问答-------------------- 加 ^ 不行吗? --------------------编程问答--------------------
加 ^ 不行吗?
我试了string^和array<int>但是没成功,能给写个列子吗?新手,求教,wp资料太少了,论坛里找人问都没有回答的
补充:移动开发 , Windows Phone