Marshal Callbacks and Delegates By Using C++ Interop RRS feed

All replies

  • C++/Cx is unmanaged and does not use the CLR. The CLR is used for Windows Store apps in .Net languages (VB and C#).

    The C++/Cx documentation includes a section on Interoperating with Other Languages that may help you. If you still have questions after reading that please provide more information on the specific scenarios that are still confusing to you.

    Monday, March 23, 2015 9:06 PM
  • Thanks a lot for the quick clarification, Rob.

    This question is related to another question which you helped.

    Let me give a specific scenario as simple as I can make:

    A managed class has the following:

    public delegate void FooCallback();
    FooCallback^ callback;
    Is there a way to pass callback to an unmanaged class so it can call it in a method?


    Monday, March 23, 2015 10:22 PM