Skip to content

Fix GH-8750: Can not create VT_ERROR variant type #8840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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