Write to eventlog from Natural for windows


I’m working on a project to convert some VB applications to Natural for windows, but I’m not able to figure out how (if possible) I can write to the eventlog from Natural.

Anyone tried that ?

Regards Claus

You might wish to try the Windows Scripting Host that can be accessed from Natural for Windows through an Automation interface. For a start, have a look at http://de.wikipedia.org/wiki/Windows_Script_Host . Next there are examples in http://www.it-visionen.de/scripting/ScriptBibliothek.aspx , which of course would have to be translated from VB to Natural.
Good luck, +o:-]

Thank you, Bennedict.

The link was very helpfull, even that my German is not so good. :wink:

In fact it also helped me to solve another problem (Read/Write to registry) with an easy solution.

Thanks, Claus