PROP_ENTRY_TYPE用法

最近几天刚换了vs2019,然后各种水土不服

这不 刚建了一个ATL组件,发现添加了属性编译不过,提示:

  错误 C4995 “PROP_ENTRY”: 名称被标记为 #pragma deprecated 

原来是旧的属性声明方式被废了,时代的更新速度也够快的,才几年而以,又一批新的技术就了来了。

于是换用

PROP_ENTRY_TYPE

然后,按参数换过之后仍然不能使用,最后查了一个MSDN:

The property map stores property descriptions, property DISPIDs, property page CLSIDs, and IDispatch IIDs. Classes IPerPropertyBrowsingImplIPersistPropertyBagImplIPersistStreamInitImpl, and ISpecifyPropertyPagesImpl use the property map to retrieve and set this information.

原来还少一个

IPerPropertyBrowsingImpl

吃奥,好吧 继承

有了!

MMP

原文地址:https://www.cnblogs.com/ice-arrow/p/11739661.html