简体   繁体   English

Windows上下文菜单,用于多个文件[C ++]

[英]Windows context menu for multiple files [C++]

I want to create a context menu that support multiple files. 我想创建一个支持多个文件的上下文菜单。

I read through SO and understand that either you must use DDE or shell extension (something to do with creating and registering COM object). 我通读了SO,了解您必须使用DDE或Shell扩展(与创建和注册COM对象有关)。 However all the sourcecodes I found are in C#. 但是,我发现的所有源代码都在C#中。

I then decided to go with COM object. 然后,我决定使用COM对象。 I found 1 in C++ that uses COM but it's dated 2006, so I just don't know if it's outdated. 我在使用COM的C ++中找到1,但它的日期为2006,所以我不知道它是否已过时。 http://www.codeproject.com/KB/shell/shellextguide1.aspx http://www.codeproject.com/KB/shell/shellextguide1.aspx

Can anyone shed me some light on this? 谁能给我一些启示? And is there any good and new article out there covering this issue? 有没有关于这个问题的新文章?

Or if anyone has some something similar before using DDE and IPC? 还是在使用DDE和IPC之前,如果有人有类似的东西?

It should work fine, the underlying mechanic hasn't changed in the last 4 years. 它应该可以正常工作,底层机制在过去四年中没有发生变化。

Take a look at the comments at the bottom of the article, people are using it without problems. 看一下文章底部的评论,人们正在毫无问题地使用它。 (There is also a link to a VS 2008 template for multiple-files) (还有指向多个文件的VS 2008模板的链接)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM