text: 
  #include "stdafx.h"
  
  #include "MainInit.h"
  #include "risCmdLineConsole.h"
  #include "CmdLineExec.h"
  
  //#define SDL_MAIN_HANDLED
  #include "SDL.h"
  
  #include "someVideoThread.h"
  #include "someTimerThread.h"
  
  //******************************************************************************
  //******************************************************************************
  //******************************************************************************
  
  int main(int argc,char** argv)
  {
     //***************************************************************************
     //***************************************************************************
     //***************************************************************************
     // Begin program.
  
     main_initialize(argc,argv);
  
     //***************************************************************************
     //***************************************************************************
     //***************************************************************************
     // Launch program threads.
  
     Some::gVideoThread = new Some::VideoThread;
     Some::gVideoThread->launchThread();
  
     Some::gTimerThread = new Some::TimerThread;
     Some::gTimerThread->launchThread();
  
     //***************************************************************************
     //***************************************************************************
     //***************************************************************************
     // Execute console command line executive, wait for user to exit.
  
     CmdLineExec* tExec = new CmdLineExec;
     Ris::gCmdLineConsole.execute(tExec);
     delete tExec;
  
     //***************************************************************************
     //***************************************************************************
     //***************************************************************************
     // Shutdown program threads.
  
     Some::gTimerThread->shutdownThread();
     delete Some::gTimerThread;
  
     Some::gVideoThread->shutdownThread();
     delete Some::gVideoThread;
  
     //***************************************************************************
     //***************************************************************************
     //***************************************************************************
     // End program.
  
     main_finalize();
  
     printf("press enter\n");
     getchar();
  
     return 0;
  }
  