摘要: C/C++编程规范精述(匈牙利命名法)1、排版上不同小结构间要空行分开,子逻辑项相对父逻辑项要缩进;{及if,while等判断语句应独占行并对齐,且后加空格以显突出。2、注释位于相应代码上面或右旁边。且与其它代码空行或空格隔开。3、变量命名风格:采用UNIX 的全小写加下划线的风格或大小写混排的方式,不要使用大小写与下划线混排的方式,但用作特殊标识如标识成员变量或全局变量的m_和g_,其后加上大小写混排的方式是允许的。定义标识符(变量名/函数名)应体现code is document:类型的第一个字母小写组合 + 有意义的单词。全局变量和函数名前应加模块名。如DWORD dwSum = 0;定 阅读全文
posted @ 2010-12-03 19:39 浪里飞 阅读(498) 评论(1) 推荐(0) 编辑
摘要: [问题描述] 用VS2008编译windows shell时,成功;相同的方法在VS2005下,提示错误: error C2787: 'IContextMenu' : no GUID has been associated with this object error C2440: 'initializing' : cannot convert from 'DWORD_PTR' to 'const... 阅读全文
posted @ 2010-12-03 19:37 浪里飞 阅读(2058) 评论(0) 推荐(0) 编辑
摘要: 第三部分 SHELL Additional一、编程中的一些关键点1、 We implemented the IShellExtInit interface, which was how Explorer initialized our object. There is another initialization interface used for some shell extensions, IPersistFile, and this is the one an infotip extension uses. IShellExtInit::Initialize() receives an 阅读全文
posted @ 2010-12-03 00:18 浪里飞 阅读(1948) 评论(0) 推荐(0) 编辑
摘要: 第二部分 Windows SHELL编程 There are many types of shell extensions, each type being invoked when different events happen. Here are a few of the more common types, and the situations in which they are invo... 阅读全文
posted @ 2010-12-03 00:15 浪里飞 阅读(2408) 评论(0) 推荐(0) 编辑
摘要: 第一部分 SHELL基本概念 Windows外壳扩展(Windows Shell Extension),是一类特殊的COM对象,在这类COM对象中用户可以加入自己的特殊功能,而Windows外壳扩展最终都会被Windows Explorer所引用[1]。 A shell extension is a COM object that adds some kind of functionality... 阅读全文
posted @ 2010-12-03 00:06 浪里飞 阅读(2543) 评论(0) 推荐(0) 编辑