Hi Frankie,
Thanks, I managed to build and run the two examples on Windows 10. TestToastLib.exe expects 7 inputs from the user, is that OK?
Hello Erol,
Yes in the sample it emits 7 notifications as you can see in the loop:
/*
* Show some sample notifications.
*/
for (int i=0; i<7; i++)
{
if (!fToastSendNotification(hToast, wszText))
{
PostQuitMessage(1);
break;
}
Sleep(250);
}
I made this to check all functionalities during the debug, bat you can reduce the number if you want.
After the toasts are showed try to click everywhere inside one of them, then write down something and click send on the second. Then you can close the main app and repeat previous actions again. You'll see that the app restarts by itself.
The same happens with the GUI demo, only here you decide to show a toast.
You can change the dialog adding other inputs, controls, etc. simply modifying the XML template.
As you can see you don't need to interact at any level with windows runtime, but only use functions and handles.
To use toasts in your app you only need the library
ToastLib.lib and the header
ToastLib.h.