Francois
Francois

Reputation: 33

Is it possible to have side-by-side versions of a C++/WinRT component

With reference to the video from the Microsoft Build 2018 conference: https://medius.studios.ms/Embed/Video/BRK2425?sid=BRK2425

we see the new IDL version 3 has no GUID in it. Does this make it possible to have 2 different version of the same component, let's say in two different folders on the same computer, and have them work both? Consider the following directory structure:

Would both exe use the DLL right next to them, or is there a registration mechanism like COM objects?

I know it is not possible with COM components, because if they have the same Type ID (guid), only one DLL can be registered for it, and the last registered DLL wins.

So I guess I could rephrase my question as to "How are dependencies resolved for a client app consuming a c++-winrt component?" If it's just plain old COM object-like, then I understand it is not possible to have two different versions, but if it's loading the DLL using regular LoadDLL() and searches the current folder first, it would be possible.

Upvotes: 1

Views: 175

Answers (0)

Related Questions