
BREW
zxgtz2007
这个作者很懒,什么都没留下…
展开
-
接口的虚函数表
BREW接口获取虚函数表,有两个相关的宏: GET_PVTBL和AEEGETPVTBL,其定义如下: // returns an 'iname'Vtbl *#define GET_PVTBL(p,iname) ((iname*)(void*)p)->pvt/* macro for retrieving the vtable from an instance o...原创 2011-10-20 11:58:39 · 170 阅读 · 0 评论 -
error C2059: syntax error : 'type'
当所定义的宏的名称与实际调用的函数名相近时, 很容易写成一样的(copy惹的祸), 如果调用了这个宏, 那么编译时就会出现C2059的类型语法错误: error C2059: syntax error : 'type' 例子:#define IWindowEx_AddRef(p) AEEGETPVTBL(p,IWindowEx)->AddRef(p)uint32 IWi...原创 2011-10-20 16:14:51 · 4328 阅读 · 0 评论