Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 I'm interopting with native c++, but it's awkward having native c++, Managed C++ and c# all in the same application..

like image 963
Jeff Avatar asked Sep 19 '11 09:09

Jeff


1 Answers

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

like image 76
ReinstateMonica Larry Osterman Avatar answered Oct 11 '22 05:10

ReinstateMonica Larry Osterman