locked
What is difference of ways for C++ invoke .NET RRS feed

  • Question

  • Hi folks,

    I found that there are many ways for C++ invoke .net dll. 1) COM 2) Switch C++ project to CLR support ....... what's the difference between them? When using COM I need to register the .Net dll to GAC, but using CLR support seems easy, does it influence when the C++ dll was used for Python or Mathlab?

    Thanks,

    FM

     


    FM
    Friday, December 2, 2011 8:34 AM

Answers

  • Hi,

    Using .NET COM in C++ application, it would host CLR(common language runtime) and then interop with COM. It is still a native C++ runtime application.

    Using C++/CLR application, it is no more a native application, it uses CLR as runtime, will be a managed or mixed application.

    http://msdn.microsoft.com/en-us/library/k8d11d4s(v=VS.100).aspx

     


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    • Marked as answer by Paul Zhou Monday, December 12, 2011 8:43 AM
    Monday, December 5, 2011 8:40 AM