摘要:
1,offsetofclass获取基类相对于子类的偏移位置。#define _ATL_PACKING 8#define offsetofclass(base, derived) ((DWORD_PTR)(static_cast((derived*)_ATL_PACKING))-_ATL_PACKING)_ATL_PACKING非零就行,只是作为一个地址。因为为了避免虚类无法创建对象的... 阅读全文
posted @ 2016-09-05 18:58
细雨细语
阅读(1689)
评论(0)
推荐(0)

浙公网安备 33010602011771号