Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7174149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:58:23+00:00 2026-05-28T15:58:23+00:00

I’m trying to create an absurdly simple shell extension in C++ using Visual Studio

  • 0

I’m trying to create an absurdly simple shell extension in C++ using Visual Studio 2010, but I can’t even seem to get the examples out there to work as a starting point.

I’m using Windows 7 x64.

I’ve tried this Visual Studio template, but once I get the template to work in VS2010, I have a host of errors that I’m not sure how to fix.

I’ve tried The Complete Idiot’s Guide to Writing Shell Extensions, and once the demo compiles all the right registry settings etc. are created but no context menu appears.

I’ve looked at this C# COM Interop example, but I’ve been left confused as to whether it is safe to use C# thanks to this article*, but it looks like I might be OK if I use .NET 4 because it supports in process side-by-side CLR hosting.

  • in short: historically two versions of .NET cannot run in the same process, and the way shell extensions work is they inject themselves into a process. So if .NET 3.5 gets injected into a .NET 2 process – bang

So, can I use .NET 4.0 now?

Is there a working, downloadable, VS2010 solution that adds a simple shell extension?

I used to be not so bad with C++ back in the day, but after years of moulding to .NET I’m quite rusty, and as such, fiddling with the details to fix the host of errors I’m getting on the existing examples is proving… fiddly!

I could really do with a clean slate to start with that I can break myself and figure out what I did wrong!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:58:23+00:00Added an answer on May 28, 2026 at 3:58 pm

    I struggled with this for a while and had limited success with the code project article due to x64 issues and SDK differences.

    I recently picked the project back up and started over using the MS all-in-one code sample and I am very pleased. It makes a simple example context menu and x64 works out of the box: http://code.msdn.microsoft.com/windowsdesktop/CppShellExtContextMenuHandl-410a709a

    To get it running on your machine:

    1. download the code via the all-in-one sample browser or use the direct link.
    2. Open project in VS under admin rights
    3. switch build config to x64 and build it
    4. Kill all explorer sessions
    5. Locate the new dll and run regsvr32.exe .\CppShellExtContextMenuHandler.dll
    6. open explorer again and right click a .cpp file to see the new menu
    7. remove it by running same command with /u flag

    My next step is to get debugging working and I think this may do the trick: msdn

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to create an if statement in PHP that prevents a single post
I'm making a simple page using Google Maps API 3. My first. One marker
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.