Changeset 828 for applications/doprava

Show
Ignore:
Timestamp:
02/23/10 14:14:39 (14 years ago)
Author:
prikryl
Message:

Value of szBasePath is already the base path.
Different placement of windows includes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/doprava/aimsun_bdm/aimsun_ds.cpp

    r825 r828  
    22 */ 
    33 
    4 /* WIN32 stuff */ 
    5 #include <windows.h> 
    6 #include <stdio.h> 
    7 #include <tchar.h> 
     4/* Class definition */ 
     5#include "aimsun_ds.h" 
     6#include "tools.h" 
    87 
    98// TODO: reference additional headers your program requires here 
     
    1413 
    1514#include <atlbase.h> 
    16  
    17 extern "C" { 
    18 #include "eh_hrd.h" 
    19 #include "els3_comm.h" 
    20 #include "vgs_hrd.h" 
    21 } 
    22  
    23 /* Class definition */ 
    24 #include "aimsun_ds.h" 
    25 #include "tools.h" 
    2615 
    2716#define MAX_PATH_BYTES  (MAX_PATH*sizeof(TCHAR)) 
     
    9281           The first search for backslash removes the executable from the 
    9382           path.*/ 
    94         last = _tcsrchr ( szBasePath, '\\' ); 
    95         *last = '\0'; 
     83        //last = _tcsrchr ( szBasePath, '\\' ); 
     84        //*last = '\0'; 
    9685        /* The second moves to the root of the installation. */ 
    97         last = _tcsrchr ( szBasePath, '\\' ); 
    98         *last = '\0'; 
     86        //last = _tcsrchr ( szBasePath, '\\' ); 
     87        //*last = '\0'; 
    9988 
    10089        /* Create the path to DLL directory. 
     
    280269        } 
    281270 
     271        /* Aaaaggggrrrrrhhhh! 
     272           C++ is much much faster than Matlab and we have a synchronisation 
     273           issue with els3 controllers starting too late. */ 
     274        Sleep ( 5000 ); 
     275 
    282276        /* Prepare full path for vehicle input data. */ 
    283277        StringCbCopy ( szEntrancePath, MAX_EXE_PATH, szSceDir ); 
     
    320314  /* Remember the size of the input vector. */ 
    321315  utsize = Urv._dsize(); 
     316 
     317  set_log_level(0); 
     318  /* Initialise the pointer to received data. */ 
     319  p_rsp = NULL; 
    322320} 
    323321 
     
    441439    } 
    442440    /* Check that the phase lengths sum to correct cycle time. */ 
    443     if ( ut[0]+ut[1]+ut[2] != 80 ) 
     441    /* 
     442        if ( ut[0]+ut[1]+ut[2] != 80 ) 
    444443    { 
    445444      fprintf ( stderr, "Intersection 495: F1+F2+F3 != Tc (should be 80)" ); 
     
    450449      fprintf ( stderr, "Intersection 601: F1+F2+F3 != Tc (should be 80)" ); 
    451450      exit(-1); 
    452     } 
     451    }*/ 
    453452 
    454453    hrdsp[0].id = 495;