I want to use log on my C++ application. However, I'd like to use Windows (10) event viewer, instead of text files. I found out some weird calls, that I don't even know what the parameters mean - ReportEvent, OpenEventLog and some other Event Logging functions. I also can't use managed code, due to some limitations on my app.
I've also tried to use the code on this link, but I get compilation errors (namespace 'System' undefined - it seems some include files are missing...).
I found no sample code that works yet.
I would appreciate a sample code, if possible - just a simple logging from a local application, built in non managed C++. Can someone help?