Write to Windows event log: Difference between revisions

Added BBC BASIC
No edit summary
(Added BBC BASIC)
Line 1:
{{task}}
Write script status to the Windows Event Log
 
=={{header|BBC BASIC}}==
{{works with|BBC BASIC for Windows}}
Writes to the Application Log:
<lang bbcbasic> INSTALL @lib$+"COMLIB"
PROC_cominitlcid(1033)
WshShell% = FN_createobject("WScript.Shell")
PROC_callmethod(WshShell%, "LogEvent(0, ""Test from BBC BASIC"")")
PROC_releaseobject(WshShell%)
PROC_comexit</lang>
 
=={{header|C sharp}}==