Saturday 10 August 2013

COM connection point callback for a C++/CLI client

If you have to write interop code, should you use C# and P/Invoke, or should you use C++/CLI? The clients for a COM connection point server can be written in C++ and in C# managed code. Recently, I got a query about the possibility of a managed C++/CLI client for a COM connection point server. A search on the web gave many samples of C++ and C# managed code but none for a C++/CLI client. It is a topic of debate; refer to this blog. It says “With C++/CLI, you can use the API natively exactly like it's meant to be used, and then "expose" the code to the managed world via C++/CLI”. This motivated me to write an article on how to implement a COM connection point callback for a C++/CLI client.

Read More

1 comment:

  1. Hiya,

    Interesting piece!Great to see someone write COM connection point callback for a C++/CLI client who is not a fanatic or a complete skeptic.

    is there any function or library that will work with databeses, like sql or osacle db. C just works with text dabases? with xml too?
    pls adress me to some books about it, i am trying to biud an aplication for database mining

    By the way do you have any YouTube videos, would love to watch it. I would like to connect you on LinkedIn, great to have experts like you in my connection (In case, if you don’t have any issues).

    Thanks and Regards