Authored by Philipp

Exception upon showing toast with C++/WinRT

I tried to write minimal code from the notification sending guide in C++/WinRT.

When I added the line with the Show instruction, the program crashed with an exception.

Running in debug mode showed that the exception was "HRESULT_FROM_WIN32(ERROR_NOT_FOUND) : Element not found". It is thrown during creation of the toast notifier at check_hresult(WINRT_IMPL_SHIM(Windows::UI::Notifications::IToastNotificationManagerStatics)->CreateToastNotifier(&result)); in Windows.UI.Notification.h.

main.cpp 847 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment