windows - What's the difference between TYPE_E_BUFFERTOOSMALL and DISP_E_BUFFERTOOSMALL HRESULT values? -
reviewing winerror.h noticed there're 2 hresult
values:
#define disp_e_buffertoosmall _hresult_typedef_(0x80020013l) #define type_e_buffertoosmall _hresult_typedef_(0x80028016l)
both claimed resolve "buffer small" text , both have same "facility" part , differ in "code" part.
what's difference between these 2 values?
disp_e_buffertoosmall
intended general use in idispatch
interfaces.
i believe type_e_*
errors intended type conversion error. type_e_buffertoosmall
appears problems converting variant
s or propvariant
s. looked around , found used in context of "property bags" (which serializable collection); example, see this.
in context of other question, disp_e_buffertoosmall
better fit.
Comments
Post a Comment