Skip to content

WriteToLogFile : Writes a text in the log file currently open

HRESULT WriteToLogFile(USHORT BlockIndex, BSTR pcStr);### Description

This function writes a text in the log file currently open.### Inputs

bstrStr - The input string in BSTR### Cause of failure

Logging not enabled, log file not presentUsage in COM Client

BSTR bstr;

bstr = SysAllocString(L“In CanSendMsg1 : “);

m_IApplication->WriteToLogFile(0, bstr);

SysFreeString(bstr);


Authoritative source: BUSMASTER DITA help source WriteToLogFile.dita, compiled into BUSMASTER.CHM with the application.