Comunicación entre C++ y C# en el mismo proyecto Metro

In my metro application, I have two components one in C++ and another in C#. Can I communicate in between them to and fro? Any code samples or references on how to do this will be very helpful.

Gracias de antemano.

preguntado el 28 de agosto de 12 a las 08:08

1 Respuestas

What you need is some C++/CX code. You can either write C++/CX directly instead of standard C++, or you can create wrappers around your standard C++. Once you do this, your C# code can make calls to the C++ just as if was another C# component.

Specifically, what you're doing is turing your C++ component into a windows runtime component. Aquí un ejemplo of C++ and Javascript, but consuming in C# is similar.

Respondido el 01 de Septiembre de 12 a las 04:09

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.