locked
[WRL] Proxy CLSID

    Question

  • Hi,
    I created a simple WRL project and it's all working fine.

    I am wondering what is the best option for the proxy CLSID:
    1. via defining PROXY_CLSID_IS
    I understand that this does make sense in COM but not in WRL as it's not registered on the registry (am I wrong?)

    2. leaving the default (not defining PROXY_CLSID_IS)
    this will take the first interface guid for the proxy.
    As WinRT apps are redeployed each time, this should not make any difference.

    Can anyone from MS enlight me if there are any good reasons to pick 1 instead of 2?

    P.S. my real problem is that I am creating a project template for WRL and Visual Studio ProjectItem substitution cannot specify Guids in the {0x..,0x..{...}} format.


    Raffaele Rialdi  http://www.iamraf.net
    Weblog: http://blogs.ugidotnet.org/raffaele
    Microsoft MVP profile https://mvp.support.microsoft.com/profile/raffaele
    UGIdotNET - http://www.ugidotnet.org/


    Raffaele Rialdi [MVP] My articles and videos: http://www.iamraf.net Italian blog: http://blogs.ugidotnet.org/raffaele
    Monday, April 30, 2012 9:37 AM

All replies

  • Hello,
     
    Thanks for your feedback, I will involve more experts to investigate it.
     
    Best regards,
    Jesse

    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, May 01, 2012 3:23 AM
  • Hi Raffaele,

    I checked with both the Visual Studio and Windows Product Groups and have not found a scenario or reason to suggest using PROXY_CLSID_IS for a WinRT class.

    Thanks!


    David Lamb

    Thursday, May 03, 2012 5:03 PM
    Moderator
  • DavidLamb [MSFT] wrote:

    Hi Raffaele,

    I checked with both the Visual Studio and Windows Product Groups and have not found a scenario or reason to suggest using PROXY_CLSID_IS for a WinRT class.

    Thank you for the answer.
    What is the best choice in WinRT?

    If I omit every option, it will be used the first guid of the first interface declared in IDL.
    Otherwise I have to specify the PROXY_CLSID manually.

    Or are you saying I should avoid the proxy creation at all? (but in this case I guess I can't expose functionalities that are used, for example, by the Contracts.

    Thanks
     -- Raffaele Rialdi  http://www.iamraf.net
    Weblog: http://blogs.ugidotnet.org/raffaele
    Microsoft MVP profile https://mvp.support.microsoft.com/profile/raffaele
    UGIdotNET - http://www.ugidotnet.org/


    Raffaele Rialdi [MVP] My articles and videos: http://www.iamraf.net Italian blog: http://blogs.ugidotnet.org/raffaele
    Thursday, May 03, 2012 9:02 PM