mohabouje / WinToast

WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10. Toast notifications allows your app to inform the users about relevant information and timely events that they should see and take action upon inside your app, such as a new instant message, a new friend request, breaking news, or a calendar event.
MIT License
700 stars 130 forks source link

Handler not working? #56

Closed HJfod closed 1 year ago

HJfod commented 4 years ago

I'm fairly new to C++ and I want to make a simple console application that runs in the background and sends a notification every now and then. For some reason VS Code keeps giving me this error? I can't seem to find a solution online, if someone could help that'd be appreciated!

image

lighterowl commented 4 years ago

Don't post screenshots of code, both the code and error in text form would suffice.

Anyhow, this error occurs because you seem to have only implemented toastActivated(), while toastActivated(int actionIndex) is also declared as abstract in IWinToastHandler, which means that your class must provide an implementation of it as well.