AXScript.cpp
/*--- function StartProgram -----------------------------------
 *
 *  Entry:  szProgram   is the program name, such as FDPSPO.
 *                      It is used as the basis for a script filename,
 *                      but does not include a path or extension.
 *          priority    is the Unisys priority.
 */
function StartProgram
Entry:  szProgram   is the program name, such as FDPSPO.
It is used as the basis for a script filename,
but does not include a path or extension.
priority    is the Unisys priority.
function StartProgram Entry : szProgram is the program name such as FDPSPO . It is used as the basis for a script filename but does not include a path or extension . priority is the Unisys priority .
BurSimRet StartProgram(const char *szProgram, int priority)
{
   BurSimRet retval=BE_NO_ERROR;
   TypScriptInfo *psi = new TypScriptInfo;
   CString strFullScriptName;
   retval = GetScriptFilename(szProgram, psi->si_script_filename, psi->si_lang);
   if(!retval) {
      psi->si_mixnum = AllocateMixNumber();
      psi->si_priority = priority;
      Mix[psi->si_mixnum].m_progname = szProgram;
      retval = StartScriptByFile(psi);
   }
   return retval;
}
BurSimRet StartProgram ( const char * szProgram , int priority ) { BurSimRet retval = BE_NO_ERROR ; TypScriptInfo * psi = new TypScriptInfo ; CString strFullScriptName ; retval = GetScriptFilename ( szProgram , psi -> si_script_filename , psi -> si_lang ) ; if ( ! retval ) { psi -> si_mixnum = AllocateMixNumber ( ) ; psi -> si_priority = priority ; Mix [ psi -> si_mixnum ] . m_progname = szProgram ; retval = StartScriptByFile ( psi ) ; } return retval ; }
function StartProgram
  Entry:  szProgram   is the program name, such as FDPSPO.
function StartProgram Entry : szProgram is the program name such as FDPSPO .