class AFX_NOVTABLE CCmdTarget : public CObject 中AFX_NOVTABLE 是什么意思~?
解决方案 »
- CInternetSession::OpenURL 异常无法捕获
- 自定义控件添加到工具条栏以后,如何删除掉?
- 问一个很弱的问题:V2005下怎么编译C++源文件呀?
- 如何在程序中动态控制菜单栏中的菜单项的可用与不可用
- 征求作品
- CToolTipCtrl窗口消息的样式问题
- 第一次遇到这样的问题(100分)
- 弱智问题(二进制文件修改),高手指点捷径。
- 如何直接使用CDatabase,CRecordset查询数据库?
- 如何把unsigned char ucImage[IMAGESIZE_ROW][IMAGESIZE_COLUM]变成BYTE *Image
- 关于SOCKET的问题,可能比较难
- 关于声卡低层编程问题
Microsoft and C++ SpecificThis is a __declspec extended attribute. This form of _declspec can be applied to any class declaration, but should only be applied to pure interface classes, that is classes that will never be instantiated on their own. The _declspec stops the compiler from generating code to initialize the vfptr in the constructor(s) and destructor of the class. In many cases, this removes the only references to the vtable that are associated with the class and, thus, the linker will remove it. Using this form of _declspec can result in a significant reduction in code size.
#ifndef AFX_ALWAYS_VTABLE
#ifndef AFX_NOVTABLE
#if _MSC_VER >= 1100 && !defined(_DEBUG)
#define AFX_NOVTABLE __declspec(novtable)
#else
#define AFX_NOVTABLE
#endif
#endif
#endif
Microsoft and C++ Specific —>This is a __declspec extended attribute. This form of _declspec can be applied to any class declaration, but should only be applied to pure interface classes, that is classes that will never be instantiated on their own. The _declspec stops the compiler from generating code to initialize the vfptr in the constructor(s) and destructor of the class. In many cases, this removes the only references to the vtable that are associated with the class and, thus, the linker will remove it. Using this form of _declspec can result in a significant reduction in code size.
Microsoft and C++ Specific —>This is a __declspec extended attribute. This form of _declspec can be applied to any class declaration, but should only be applied to pure interface classes, that is classes that will never be instantiated on their own. The _declspec stops the compiler from generating code to initialize the vfptr in the constructor(s) and destructor of the class. In many cases, this removes the only references to the vtable that are associated with the class and, thus, the linker will remove it. Using this form of _declspec can result in a significant reduction in code size.
Microsoft and C++ Specific —>This is a __declspec extended attribute. This form of _declspec can be applied to any class declaration, but should only be applied to pure interface classes, that is classes that will never be instantiated on their own. The _declspec stops the compiler from generating code to initialize the vfptr in the constructor(s) and destructor of the class. In many cases, this removes the only references to the vtable that are associated with the class and, thus, the linker will remove it. Using this form of _declspec can result in a significant reduction in code size.
其实。我是想看看大家对英文的理解~~
每个人的理解都不同的~~
你们却都给我英文的原版~~
呵呵谢谢了~~
不过,分么,就要少给各位了~~