摘要: 0.NULL的前世今生对于C和C++程序员来说,一定不会对NULL感到陌生。但是C和C++中的NULL却不等价(别惊讶,这是真的)。NULL表示指针不指向任何对象,但是问题在于,NULL不是关键字,而只是一个宏定义(macro)。在C中,习惯将NULL定义为void*指针值0:#define NULL (void*)01#define NULL (void*)0但同时,也允许将NULL定义为整常数0An integer constant expression with the value 0, or such an expression cast to type void *, is call 阅读全文
posted @ 2013-11-06 10:50 fbwang2011 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 1.1 return code for main function--c++/c never define no return main function. we should not write main function like "void main()", even most of compiler will add "return 0" statement at the end of the main function automatically.--return 0 indicate that the program run successf 阅读全文
posted @ 2013-10-30 11:06 fbwang2011 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-05-10 23:49 fbwang2011 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1. Automation Model 包含如下几个部份: 1. Environment model 2. Project model 3. Code model 4. Editor model 5. Forms model ... 阅读全文
posted @ 2013-03-12 00:02 fbwang2011 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 3. Visualizer 的作用是在debug 时能根据用户的特殊需求来展示自定义数据,这个扩展和WATCH1查看变量的功能很类似。 例如,可以将下面这个类型的数据,以特点的方式展示给用户,易于用户理解(20xx/xx/xx)typedef struct _SYSTEMTIME { WORD wYear; WORD wMonth; WORD wDayOfWeek; WORD wDay; WORD wHour; WORD wMinute; WORD wSecond; WORD wMilliseconds; } SYSTEMTIME, *PSYSTEMTIME, *LPSYST... 阅读全文
posted @ 2013-03-11 01:36 fbwang2011 阅读(226) 评论(0) 推荐(0) 编辑
摘要: VS2008 的扩展有Macros, Add-ins, Visualizers, VSPackages, Code snippets, Project templates, MSBuild, Visual Studio Shell, Domain - specific languages tools. 1. Macros的扩展示例 从VS的菜单栏中的工具—>宏—>Macro 资源管... 阅读全文
posted @ 2013-03-09 14:26 fbwang2011 阅读(261) 评论(0) 推荐(0) 编辑