Calling managed code from c++ shell extentions.. RRS feed

  • Question

  • Hi,
    We are planning to implement a shell extension to expose some of the functionalties of our windows client through the explorer context menu. And the windows client has been implemented using C#. We are planning to use some of the already implemented C# modules within the extension.But we found that microsoft is not recomending to use managed code within explorer extensions. (http://msdn.microsoft.com/en-us/library/dd758089(v=VS.85).aspx). Can anybody please let us know what is the best approch for dealing with this situation?


    Wednesday, July 7, 2010 12:26 PM


  • The situation reportedly improves when using .NET 4.0.  If you are comfortable trusting an MSDN Magazine article as "official", the following can be found:



    With the ability to have multiple runtimes in process with any other runtime, we can now offer general support for writing managed shell extensions—even those that run in-process with arbitrary applications on the machine. We still do not support writing shell extensions using any version earlier than .NET Framework 4 because those versions of the runtime do not load in-process with one another and will cause failures in many cases.



    • Marked as answer by SamAgain Wednesday, July 14, 2010 6:53 AM
    Wednesday, July 7, 2010 11:59 PM