Article View: borland.public.cppbuilder.nativeapi
Article #16927Re: Further to long question
From: user
Date: Mon, 21 Apr 2003 11:48
Date: Mon, 21 Apr 2003 11:48
50 lines
2952 bytes
2952 bytes
Chris wrote:
>
> I have a VB sample that works, it comes with a REG file to register the
> handler against OCX files. I change the GUID in the reg file to mine and it
> still does not work. (I include the registry text at the bottom).
>
<snip>
>
> [HKEY_CLASSES_ROOT\.OCX]
> @="ActiveX_File"
>
> [HKEY_CLASSES_ROOT\ActiveX_File]
> @="Windows ActiveX Controls"
>
> [HKEY_CLASSES_ROOT\ActiveX_File\shellex\ContextMenuHandlers]
> @="ActiveX_FileMenu"
>
> ; ***---modify the Clasid entry below---***
> ; replace {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} with a valid Clasid
> entry...
> ; ***-----------------------------------***
> [HKEY_CLASSES_ROOT\ActiveX_File\shellex\ContextMenuHandlers\ActiveX_FileMenu
> ]
> @="{A65AD1B6-B38A-4391-974E-669D9B1C8200}"
>
> ; ***---modify the Clasid entry below---***
> ; replace {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} with a valid Clasid
> entry...
> ; ***-----------------------------------***
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell
> Extensions\Approved]
> "{A65AD1B6-B38A-4391-974E-669D9B1C8200}"="ActiveX File Extension"
>
>
Although this sample agrees with the description in the article, both
differ from the Microsoft Platform SDK documentation, not to mention
entries in my registry. According to those sources the CLSID should be a
subkey (not the default value) of the following key:
HKEY_CLASSES_ROOT\Program ID\shellex\ContextMenuHandlers\
where "Program ID" would be "ActiveX_FileMenu" in your example.
You can see the docs at one of the following urls, or look at working
examples in your own registry by searching for the word
"ContextMenuHandlers".
ms-help://MS.PSDK.1033/shellcc/platform/shell/programmersguide/
shell_int/shell_int_extending/extensionhandlers/
contextmenuhandlers.htm#registering
http://tinyurl.com/9yhw
Technical Details
Message-ID:
<3EA3DA77.7020905@domain.invalid>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ea32cdc@newsgroups.borland.com> <3ea37a64$1@newsgroups.borland.com> <3ea3c967$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5db4be22314e6061 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-21 04:51:19 PST Message-ID: <3EA3DA77.7020905@domain.invalid> Date: Mon, 21 Apr 2003 07:48:07 -0400 From: user@domain.invalid User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Further to long question References: <3ea32cdc@newsgroups.borland.com> <3ea37a64$1@newsgroups.borland.com> <3ea3c967$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 151.201.18.183 X-Trace: newsgroups.borland.com 1050925706 151.201.18.183 (21 Apr 2003 04:48:26 -0700) Lines: 51 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail