Open autumngao opened 12 months ago
This is my toast template:
<toast>
<visual>
<binding template="ToastGeneric">
<text>Title</text>
<text>Text</text>
</binding>
</visual>
<actions>
<action content="Learn more" activationType="protocol" arguments="actionString:test"/>
</actions>
</toast>
[Enter feedback here]
I create a consle application based on C++\Winrt , here is the source code.
This code works well on windows11, but does not work on windows 10. If I add some operation code before
return 0,
such ascout << "what ever"<<endl;
orsleep(100);
, it can work on windows 10 too. It seems the application should wait for a moment after calling ToastNotifier.Show on windows 10.Why does this happen? Is there any way to get the result of calling ToastNotifier.Show?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.