Event Formatting [in] Variable with the Event Id nSrcId [in] Variable with the Source Id langId [in] The language id of the needed language. The needed language should be marked with *LCIDs. The following table gives a list of some language ids. pEventHead [in] Pointer to a TcEventHeader [ } 181] object. This object is the event configuration. eventData [in] Pointer to a Safearray, that holds the event arguments. Its documented in the configuration of the Formatter how the event arguments have to be palced in the shown event message. The followd data types are supported by the default Formatter: int (16bit), long (32bit), float(32bit), double(64bit), string(BSTR).
The eventdata is assigned when the event is shown. msg [out, retval] PPointer to a BSTR string that returns the formatted string. Return Values S_OK Function successful. E_POINTER szFormat was an invalid pointer. E_NOTIMPL This method is not implemented. Notes Most standard Formatters, like the XML based Formatter (TcEventFormatter.TcXmlFormatter) try to return a string in the default language when the requested language cannot be found in the configuration of the formatter. *LCID: more informations in the MSDN Library.
8.1.1.3 SetFormatString ITcLogFormatterC [ } 116] This method returns the Format string assigned from TcEvent.DataFormatStrAddress when the object returned from the PLC module ADSLOGEVENT was shown. TcEventLogger 118 Version: 1.1 LCID Description 1031 German 1033 US English 1034 Spanish 1036 French