Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have an MFC application with an context menu handler which works fine on all 32 bit win.
I have tried it on (XP, Vista,7, Server 2000/2007...).

Then I installed 64 bit 7 and now I can't get it to rear it's head anymore.
It's the same on all 64 bit windows versions.

First I recompiled it for 64 bit.
I've tried several versions of Visual Studio (currently 2010).
I've made sure the registry entries for the shell ext. are in the correct part (not under WOW6432Node).
I've scoured the internet several times to find help.
I've tried to riddle it with messageboxes to see if it's at least called by windows.

It just won't trigger in 64 bit and I'm out of ideas.

Any help/suggestions would be much appreciated.

/Urban Dahlberg
Posted
Updated 14-Jan-11 4:10am
v2
Comments
Dalek Dave 14-Jan-11 10:10am    
Edited for Grammar and Readability.

Did you register it as administator? Using "Run as Administrator" ?

There is also this:
Creating Shortcut Menu Handlers[^]

Regards
Espen Harlinn
 
Share this answer
 
v2
Comments
JF2015 14-Jan-11 5:39am    
Good answer. 5+
Espen Harlinn 14-Jan-11 5:41am    
Thanks JF2015!
Dalek Dave 14-Jan-11 10:10am    
Good Call.
Espen Harlinn 14-Jan-11 10:31am    
Thanks Dalek!
Thank you jk Chan for offering to check my code.
I was working on sending you a sample project when I found the answer! :-D
My context menu handler is one project of many in an VS Soulution, and when I broke out that project, put it in it's own solution and compiled it I suddenly got a comliper error I've never seen before.
As it happens, a long time ago, I tried to add an MFC class to my context menu handler to access the registry easier. That didn't work so i removed the files but forgot to remove the "#include ...".
That #include been sitting there for years, never causing any trouble until I tried to use my dll in a 64 bit windows.
I removed the include, compiled the dll for 64 bit, replaced the old one and the context menu handler started working at once.

If it hadn't been for Mr Chan I wouldn't have found it, so thank you :)

Best Regards,
Urban Dahlberg
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900