I want to add a context menu entry with C++. I've been searching but all I can find is some jackass trying to sell me some BS program that does it for me which is not what I am looking for. I'm not looking for anything that uses .NET or Visual C++ either. I want the straight C++ way of doing this.
You can add a right-click menu item that just runs a program, simply by registry editing. No need to do shell extension for that. Eg I used to have an extract icon thing (copy to clipboard),
HKEY_CLASSES_ROOT\*\shell\copyIcon\=Copy icon to clipboard HKEY_CLASSES_ROOT\*\shell\copyIcon\command="path to the program" %1
Cheers & hth.,
A decent tutorial, ignore the jackass title, is available here . This kind of shell programming requires COM, no escaping that. Trying to write COM code without MSVC support classes is character-building. But possible, as long as you know COM really well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.