Skip to content

WinUI3 : Can a control/window creation through C++ fail? #4019

Answered by DarranRowe
harshith187 asked this question in Q&A
Discussion options

You must be logged in to vote

Generally, C++/WinRT will use C++ exceptions. So it is usually nice to have a catch block for winrt::hresult_error to handle this.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@harshith187
Comment options

Answer selected by harshith187
Comment options

You must be logged in to vote
1 reply
@harshith187
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants