Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Jun 21, 2022

Despite the current documentation claiming that variant::__construct()
would allow to create VT_ERROR variants, that is not possible. It is
not even clear whether this would be desirable, so we introduce
variant::createError() which explicitly allows to do this.

We also introduce DISP_E_PARAMNOTFOUND which might be the most
important scode for this purpose, since this allows to skip optional
parameters in method calls.

Despite the current documentation claiming that `variant::__construct()`
would allow to create `VT_ERROR` variants, that is not possible.  It is
not even clear whether this would be desirable, so we introduce
`variant::createError()` which explicitly allows to do this.

We also introduce `DISP_E_PARAMNOTFOUND` which might be the most
important `scode` for this purpose, since this allows to skip optional
parameters in method calls.
@cmb69
Copy link
Member Author

cmb69 commented Jul 5, 2022

Closing in favor of PR #8886.

@cmb69 cmb69 closed this Jul 5, 2022
@cmb69 cmb69 deleted the cmb/gh8750 branch July 5, 2022 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

php_com_dotnet - can not create VT_ERROR variant type

1 participant