开发者

Windows Phone 7: System.Runtime.InteropServices.Marshal does not work with COM

开发者 https://www.devze.com 2023-01-07 08:28 出处:网络
I have two questions. 1)Does Windows Phone 7 support COM? .NET Framework knows such attributes like ComVisible, but I am not sure after all.

I have two questions.

1)Does Windows Phone 7 support COM? .NET Framework knows such attributes like ComVisible, but I am not sure after all.

2)Sy开发者_StackOverflow社区stem.Runtime.InteropServices.Marshal misses any COM functions. Particularly, if the first question is answered positive, I miss StringToBSTR and GetObjectForNativeVariant. I am sure both functions can be written by myself, though it will take a while. Does anyone know what I should do in this situation?

What a pity OpenNETCF Smart Device Framework is not understood by Phone 7 .NET Framework.

.NET Framework is from Windows Phone SDK beta.


No COM in WP7. It's managed api's all the way.

0

精彩评论

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

关注公众号