ITLogLib::RunApplication

 

bool ITLogLib::RunApplication (const char* pApplication, const char* pParamStr = 0, const char* pDefaultDir = 0);

 

Purpose:

§      helper function to start an external application like ITLogBook, ITConfigManager, or any other program

 

Parameters:

§      pApplication (Input): Name of the application to start or the name of a document file.
In the latter case the extension of the file must be associated in Windows with an application.

§      pParamStr (Input): Parameters required by the started application

§      pDefaultDir (Input): Path to the default directory the application should work with

 

Return value:

§      true if the start of the application was successful

§      false otherwise

 

Notes:

§      This function is for your convenience to start ITConfigManager, ITLogBook or any other program out of your application, for instance for comfortably viewing the current logfile or ITLogLib configuration.

 

Samples:

§      This code opens ITConfigManager with the current configuration file:

 GetITLogLib().RunApplication(GetITLogLib().GetConfigFile());

§      This code opens the current logfile depending on its filetype (*.ilf, *.html or *.txt) in ITLogBook, a web browser or a text editor:

 ITOutputLogChannel* pLogChannel=

  GetITLogLib().GetLogChannel("StdLog");

 GetITLogLib().RunApplication(pLogChannel->GetCurrentLogFile());