What is the difference between the values ​​of TYPE_E_BUFFERTOOSMALL and DISP_E_BUFFERTOOSMALL HRESULT?

Viewing WinError.h I noticed that there are two values HRESULT:

#define DISP_E_BUFFERTOOSMALL _HRESULT_TYPEDEF_(0x80020013L)
#define TYPE_E_BUFFERTOOSMALL _HRESULT_TYPEDEF_(0x80028016L)

both claimed that they allowed “buffering too small” text, and both of them had the same part of the “object” and differed only in the part of the “code”.

What is the difference between these two values?

+3
source share
1 answer

DISP_E_BUFFERTOOSMALLDesigned for general use in interfaces IDispatch.

, TYPE_E_* . TYPE_E_BUFFERTOOSMALL VARIANT PROPVARIANT s. , " " ( ); , . this.

DISP_E_BUFFERTOOSMALL .

+2

Source: https://habr.com/ru/post/1793017/


All Articles