CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2002
    Location
    Chicago, IL
    Posts
    255

    Version Indpendent ProgID from CLSID

    Given a CLSID, I'd like to get the version independent ProgID. For example, given a CLSID of:

    {0006F03A-0000-0000-C000-000000000046}

    I'd like to get back "Outlook.Application". This might boil down to the "VersionIndependentProgID" registry key under the given CLSID. If this is correct, are there any COM methods that would return this value? I'd rather not query the registry for this information because that sounds like a hack. Thanks.
    Last edited by sjc; April 29th, 2004 at 05:56 PM.

  2. #2
    Join Date
    Sep 2002
    Posts
    924
    I have never used it but ProgIDFromCLSID sounds like it does what you want.

  3. #3
    Join Date
    Mar 2002
    Location
    Chicago, IL
    Posts
    255
    I just found that now while searching the help, but I'm not sure if it returns the version independent value or not. I'll have to test that.

  4. #4
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354
    Darn !! Was trying to look for some CoGet...blahblah... !!

  5. #5
    Join Date
    Mar 2002
    Location
    Chicago, IL
    Posts
    255
    yeah, the ProgIDFromCLSID returns the versioned prog id. aside from either string parsing, or doing direct registry access, i dont' know.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured