开发者

Can C++/CX simplify my (non-WinRT) WPF application?

开发者 https://www.devze.com 2023-04-06 07:55 出处:网络
C++/CX seems to make interfacing native C++ with C# FAR easier and more direct than the current method using a C++/CLI \'layer\' in-between (with all the complications that entails).

C++/CX seems to make interfacing native C++ with C# FAR easier and more direct than the current method using a C++/CLI 'layer' in-between (with all the complications that entails). But can I use C++/CX OUTSIDE WinRT in a old-school WPF Desktop-style Application? Clarification: My WPF App 'wraps' an older Windows32 Application code. So 开发者_C百科I'm interopting with native c++, but it's awkward having native c++, Managed C++ and c# all in the same application..


No you cannot use C++/CX outside WinRT - it relies on the windows runtime metadata and there is no metadata for non winrt APIs.


Yes you can. WinRT and Win32 is interoperable, just that any application using anything outside the WinRT world cannot be sold in the appstore.

0

精彩评论

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

关注公众号