MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Context Menu Shell Extension problem

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> C Sharp
Author Message
Poggs



Joined: 08 Aug 2007
Posts: 4

PostPosted: Wed Dec 12, 2007 7:34 pm    Post subject: Context Menu Shell Extension problem Reply with quote

Hi everyone,
I used the pattern for Shell Extensions for Context menu from Dino
Esposito's article. However I implemented it in more than one application
and it seems that those two right click functionalities cannot work
together.
void IContextMenu.InvokeCommand (IntPtr pici)

I put more debugging information and I noticed that the two assemblies are
using a common value. I haved changed their namespaces and guids to be
different but still I am getting the same value.



How do I resolve this.



Aldwin

Archived from group: microsoft>public>dotnet>languages>csharp
Back to top
View user's profile Send private message
Poggs



Joined: 08 Aug 2007
Posts: 4

PostPosted: Thu Dec 13, 2007 3:37 pm    Post subject: Re: Context Menu Shell Extension problem Reply with quote

Another thing that I noticed here is that other context menu are not working
too. An example is the OpenWith menu. Before it displays the different
application where you can open a file but now it displays "Open With" text
inside the Open With context menu.

How is this happening?

"Poggs" wrote in message @TK2MSFTNGP06.phx.gbl...
> Hi everyone,
> I used the pattern for Shell Extensions for Context menu from Dino
> Esposito's article. However I implemented it in more than one application
> and it seems that those two right click functionalities cannot work
> together.
> void IContextMenu.InvokeCommand (IntPtr pici)
>
> I put more debugging information and I noticed that the two assemblies are
> using a common value. I haved changed their namespaces and guids to be
> different but still I am getting the same value.
>
>
>
> How do I resolve this.
>
>
>
> Aldwin
>
>
Back to top
View user's profile Send private message
Poggs



Joined: 08 Aug 2007
Posts: 4

PostPosted: Thu Dec 13, 2007 8:20 pm    Post subject: Re: Context Menu Shell Extension problem Reply with quote

Additional Information
I added some debugging information and I noticed that the IDCmdFirst value
is higher than the idCmdLast.
First application generates
[2228] Initializing Shell Extensions
[2228] pidlFolder : 0
[2228] lpdobj : 22245384
[2228] hKeyProgID : 2454
[2228] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[2228] Query Context Menu
[2228] hMenu : 366805703
[2228] iMenu : 0
[2228] icmdFirst : 31092
[2228] idcmdLast : 31226
[2228] uFlags : 131088
[2228] hmnuPopup : 7538337
[2228] m_hDrop : 83582664

Second application generates this

[2228] Initializing Shell Extensions
[2228] pidlFolder : 0
[2228] lpdobj : 22245384
[2228] hKeyProgID : 2454
[2228] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[2228] Query Context Menu
[2228] hMenu : 366805703
[2228] iMenu : 0
[2228] icmdFirst : 62289
[2228] idcmdLast : 31226
[2228] uFlags : 131088
[2228] hmnuPopup : 34145945
[2228] m_hDrop : 1094128

Also noticed that they both have the same uflags..

But both context menu extensions are working fine if only one of them are
installed in the machine.

"Poggs" wrote in message @TK2MSFTNGP06.phx.gbl...
> Another thing that I noticed here is that other context menu are not
> working too. An example is the OpenWith menu. Before it displays the
> different application where you can open a file but now it displays "Open
> With" text inside the Open With context menu.
>
> How is this happening?
>
> "Poggs" wrote in message
> @TK2MSFTNGP06.phx.gbl...
>> Hi everyone,
>> I used the pattern for Shell Extensions for Context menu from Dino
>> Esposito's article. However I implemented it in more than one application
>> and it seems that those two right click functionalities cannot work
>> together.
>> void IContextMenu.InvokeCommand (IntPtr pici)
>>
>> I put more debugging information and I noticed that the two assemblies
>> are using a common value. I haved changed their namespaces and guids to
>> be different but still I am getting the same value.
>>
>>
>>
>> How do I resolve this.
>>
>>
>>
>> Aldwin
>>
>>
>
>
Back to top
View user's profile Send private message
Poggs



Joined: 08 Aug 2007
Posts: 4

PostPosted: Tue Dec 18, 2007 3:09 pm    Post subject: Re: Context Menu Shell Extension problem Reply with quote

Issue Fixed....
Problem is the idCMDFirst and idcmdLast values being messed up..

"Poggs" wrote in message @TK2MSFTNGP02.phx.gbl...
> Additional Information
> I added some debugging information and I noticed that the IDCmdFirst value
> is higher than the idCmdLast.
> First application generates
> [2228] Initializing Shell Extensions
> [2228] pidlFolder : 0
> [2228] lpdobj : 22245384
> [2228] hKeyProgID : 2454
> [2228] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> [2228] Query Context Menu
> [2228] hMenu : 366805703
> [2228] iMenu : 0
> [2228] icmdFirst : 31092
> [2228] idcmdLast : 31226
> [2228] uFlags : 131088
> [2228] hmnuPopup : 7538337
> [2228] m_hDrop : 83582664
>
> Second application generates this
>
> [2228] Initializing Shell Extensions
> [2228] pidlFolder : 0
> [2228] lpdobj : 22245384
> [2228] hKeyProgID : 2454
> [2228] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> [2228] Query Context Menu
> [2228] hMenu : 366805703
> [2228] iMenu : 0
> [2228] icmdFirst : 62289
> [2228] idcmdLast : 31226
> [2228] uFlags : 131088
> [2228] hmnuPopup : 34145945
> [2228] m_hDrop : 1094128
>
> Also noticed that they both have the same uflags..
>
> But both context menu extensions are working fine if only one of them are
> installed in the machine.
>
> "Poggs" wrote in message
> @TK2MSFTNGP06.phx.gbl...
>> Another thing that I noticed here is that other context menu are not
>> working too. An example is the OpenWith menu. Before it displays the
>> different application where you can open a file but now it displays "Open
>> With" text inside the Open With context menu.
>>
>> How is this happening?
>>
>> "Poggs" wrote in message
>> @TK2MSFTNGP06.phx.gbl...
>>> Hi everyone,
>>> I used the pattern for Shell Extensions for Context menu from Dino
>>> Esposito's article. However I implemented it in more than one
>>> application and it seems that those two right click functionalities
>>> cannot work together.
>>> void IContextMenu.InvokeCommand (IntPtr pici)
>>>
>>> I put more debugging information and I noticed that the two assemblies
>>> are using a common value. I haved changed their namespaces and guids to
>>> be different but still I am getting the same value.
>>>
>>>
>>>
>>> How do I resolve this.
>>>
>>>
>>>
>>> Aldwin
>>>
>>>
>>
>>
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Help with Right Mouse Click / Context Menu / DataGrid I am implementing a context menu for a DataGrid. I am looking to grab the value in the DataGrid Cell to use with the context menu. In order to get the value I need to perform a HitTest. If I perform the test in the MouseDown() event I get what I am loo

Microsoft IE Execute shell has encountered a problem and nee I recently had .net version 2 installed to support a product that requires ..net 2. When the application is run, I get the message "Microsoft IE Execute shell has encountered a problem and needs to close. We are sorry for the I found that

Right Click Menu problem Hello, I used to use my menu on right click event and it works well, but when my menu overlays dropdown control (menu should be always on top of any document object) then dropdown control is on top of my menu. Some how DIV element c

Managed extension is turned off automatically !! I have C++ unmanaged projects with managed extension turned on. They are compiling fine in developer computer. In the build computer, a single solution contains C#, .Net C++, C++ unmanaged and C++ unmanaged with managed extension turned on. But we are get

How to configure a SOAP extension to run on the client side? Hello, I could not find anywhere instructions how to apply a soap extension to run on the client. All explanations that I have encountered so far explain the operation of a soap extension on the client or the server. But when it comes to explaining how to
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> C Sharp All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group